-
Notifications
You must be signed in to change notification settings - Fork 24
57 lines (53 loc) · 1.36 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
55
56
57
name: sw
on:
push:
pull_request:
schedule:
# every day
- cron: 0 0 * * *
jobs:
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v1
- uses: egorpugin/sw-action@master
- run: ./sw -static build
- uses: actions/upload-artifact@v3
with:
name: sw
path: .sw/out/**/*.exe
linux:
runs-on: ubuntu-22.04
container: fedora:latest
steps:
- uses: actions/checkout@v1
- name: prepare
run: |
sudo dnf -y update
sudo dnf -y install flex bison cmake which gcc clang clang-tools-extra lld git
- uses: egorpugin/sw-action@master
- run: ./sw -static build -compiler gcc
- uses: actions/upload-artifact@v3
with:
name: sw
path: .sw/out
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- 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 -static build -compiler appleclang
- uses: actions/upload-artifact@v3
with:
name: sw
path: .sw/out