-
Notifications
You must be signed in to change notification settings - Fork 394
54 lines (49 loc) · 1.28 KB
/
sw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: sw
on:
push:
branches:
- master
paths-ignore:
- '**/CMakeLists.txt'
- '.github/*'
pull_request:
branches:
- master
paths-ignore:
- '**/CMakeLists.txt'
- '.github/*'
workflow_dispatch:
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: egorpugin/sw-action@master
- 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 g++ clang clang-tools-extra lld
- uses: egorpugin/sw-action@master
- run: ./sw build -static -shared -config d,r
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: egorpugin/sw-action@master
- name: install
run: |
brew update
brew install flex bison gcc llvm
- name: build
run: |
export PATH="/opt/homebrew/opt/bison/bin:$PATH"
export PATH="/opt/homebrew/opt/flex/bin:$PATH"
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export PATH="/opt/homebrew/opt/gcc/bin:$PATH"
./sw build -static -shared -config d,r -compiler gcc-14