-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (36 loc) · 1.29 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
45
46
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Zig
uses: goto-bus-stop/setup-zig@d866436887ad1b24590684f9d00480376663dd36
- 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=apple_m2
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