-
Notifications
You must be signed in to change notification settings - Fork 16
68 lines (55 loc) · 1.85 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches-ignore:
- gh-pages
jobs:
build_gui:
strategy:
matrix:
# windows currently does not work because WebView2Loader archive is not really a .tar so the command is failing.
os: [macos] #, windows]
# only x86_64 builds now (it might be because github worker is on MacOSX13.1.sdk?
# ld: unknown/unsupported architecture name for: -arch aarch64
arch: ["x86_64"] #, "aarch64"]
runs-on: ${{ matrix.os == 'linux' && 'ubuntu' || matrix.os }}-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: npm ci && npm run build
- run: zig build -Dtarget=${{matrix.arch}}-${{matrix.os}} -Doptimize=ReleaseFast
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ava_${{ matrix.os }}_${{ matrix.arch }}
path: zig-out/bin/*
build_headless:
strategy:
matrix:
os: [linux, windows] # , macos]
arch: ["x86_64", "aarch64"]
runs-on: ${{ matrix.os == 'linux' && 'ubuntu-latest' || matrix.os == 'macos' && 'macos-14' || 'windows-latest' }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: npm ci && npm run build
- run: zig build -Dheadless=true -Dtarget=${{matrix.arch}}-${{matrix.os}} -Doptimize=ReleaseFast
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ava_headless_${{ matrix.os }}_${{ matrix.arch }}
path: zig-out/bin/*