-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (35 loc) · 1.26 KB
/
ci.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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Zig
uses: mlugg/setup-zig@v1
- name: Unit tests
run: |
zig build test
zig build test -Drelease
- name: Compilation to multiple targets
run: |
zig build -Drelease
zig build -Dtarget=x86_64-linux -Dcpu=baseline
zig build -Dtarget=aarch64-linux -Dcpu=baseline+aes+crypto
zig build -Dtarget=x86_64-windows -Dcpu=baseline
zig build -Dtarget=aarch64-windows -Dcpu=baseline+aes+crypto
zig build -Dtarget=x86_64-macos -Dcpu=baseline
zig build -Dtarget=aarch64-macos -Dcpu=baseline
zig build -Dtarget=powerpc64le-linux
zig build -Dtarget=x86_64-linux -Dcpu=znver4
zig build -Dtarget=aarch64-linux -Dcpu=ampere1a+aes+crypto
zig build -Dtarget=x86_64-windows -Dcpu=znver4
zig build -Dtarget=aarch64-windows -Dcpu=ampere1a+aes+crypto
zig build -Dtarget=x86_64-macos -Dcpu=znver4
zig build -Dtarget=aarch64-macos -Dcpu=apple_m2
zig build -Dtarget=wasm32-wasi
rm -fr zig-cache zig-out