Skip to content

Commit

Permalink
Update sw.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Mar 5, 2024
1 parent 0442786 commit ceccaa6
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/sw.yml
Expand Up @@ -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

0 comments on commit ceccaa6

Please sign in to comment.