Skip to content

filter out NCC

filter out NCC #283

Workflow file for this run

name: Recompile ido and publish releases
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
ido: [5.3, 7.1]
name: Recompiling ido ${{ matrix.ido }} for ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# fetch-tags: 'true'
# Ubuntu
- name: Install dependencies (Ubuntu)
shell: bash
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Build recomp binary (Ubuntu)
shell: bash
if: matrix.os == 'ubuntu-20.04'
run: |
make -j $(nproc) RELEASE=1 setup
- name: Run the build script (Ubuntu)
shell: bash
if: matrix.os == 'ubuntu-20.04'
run: |
make -j $(nproc) RELEASE=1 VERSION=${{ matrix.ido }}
# MacOS
- name: Install dependencies (MacOS)
shell: bash
if: matrix.os == 'macos-latest'
run: |
brew install make
- name: Build recomp binary (MacOS)
shell: bash
if: matrix.os == 'macos-latest'
run: |
make -j $(nproc) RELEASE=1 setup
- name: Run the build script (MacOS)
shell: bash
if: matrix.os == 'macos-latest'
run: |
make -j $(nproc) RELEASE=1 VERSION=${{ matrix.ido }} TARGET=universal
# Windows
- name: Install dependencies (Windows)
uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
install: |-
gcc
mingw-w64-x86_64-gcc
make
- name: Build recomp binary (Windows)
shell: msys2 {0}
if: matrix.os == 'windows-latest'
run: |-
make --jobs RELEASE=1 setup
- name: Run the build script (Windows)
shell: cmd
if: matrix.os == 'windows-latest'
run: |-
set MSYSTEM=MSYS
msys2 -c 'make --jobs RELEASE=1 VERSION=${{ matrix.ido }}'
# Archive
- name: Create release archive
shell: bash
run: |
cd build/${{ matrix.ido }}/out
tar -czvf ../../../ido-${{ matrix.ido }}-recomp-${{ matrix.os }}.tar.gz *
- name: Upload archive
uses: actions/upload-artifact@v3
with:
name: ido-${{ matrix.ido }}-recomp-${{ matrix.os }}
path: |
ido-${{ matrix.ido }}-recomp-${{ matrix.os }}.tar.gz
- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
ido-${{ matrix.ido }}-recomp-${{ matrix.os }}.tar.gz