From ceccaa68be7db03792e33d724bb33ad26b4e241b Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Tue, 5 Mar 2024 19:16:06 +0300 Subject: [PATCH] Update sw.yml --- .github/workflows/sw.yml | 44 +++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 14 deletions(-) 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 +