diff --git a/.github/workflows/sw.yml b/.github/workflows/sw.yml index 1290cfa90..1c0335aea 100644 --- a/.github/workflows/sw.yml +++ b/.github/workflows/sw.yml @@ -3,21 +3,37 @@ name: sw on: [push, pull_request] jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [windows-latest, ubuntu-22.04, macos-12] - + windows: + runs-on: windows-latest steps: - uses: actions/checkout@v4 - uses: egorpugin/sw-action@master - - - name: build - if: matrix.os == 'windows-latest' - run: ./sw -static -shared -config d,r build - + - run: ./sw build -static -shared -config d,r + + linux: + runs-on: ubuntu-22.04 + container: fedora:latest + steps: + - uses: actions/checkout@v4 + - name: prepare + run: | + sudo dnf -y update + sudo dnf -y install cmake which gcc + - uses: egorpugin/sw-action@master + - run: ./sw build -static -shared -config d,r -compiler gcc + + macos: + runs-on: macos-13 + steps: + - uses: actions/checkout@v4 + - uses: egorpugin/sw-action@master + - name: install + run: brew install flex bison gcc + #- run: sudo xcode-select --switch /Library/Developer/CommandLineTools - name: build - if: matrix.os != 'windows-latest' - run: ./sw -static -shared -config d,r build + run: | + export PATH="/usr/local/opt/flex/bin:$PATH" + export PATH="/usr/local/opt/bison/bin:$PATH" + export PATH="/usr/local/opt/gcc/bin:$PATH" + ./sw build -static -shared -config d,r -compiler gcc-13 +