File tree Expand file tree Collapse file tree 3 files changed +29
-9
lines changed Expand file tree Collapse file tree 3 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Compilation
2
2
3
3
on :
4
4
push :
@@ -16,14 +16,13 @@ jobs:
16
16
- name : Install Zig
17
17
uses : mlugg/setup-zig@v1
18
18
19
- - name : Unit tests
20
- run : |
21
- zig build test
22
- zig build test -Drelease
23
-
24
19
- name : Compilation to multiple targets
25
20
run : |
21
+ zig build
26
22
zig build -Drelease
23
+ zig build -Drelease -Dfavor_performance
24
+ zig build -Drelease -Dwith_benchmark
25
+ zig build -Drelease -Dwith_benchmark -Dfavor_performance
27
26
28
27
zig build -Dtarget=x86_64-linux -Dcpu=baseline
29
28
zig build -Dtarget=aarch64-linux -Dcpu=baseline+aes+crypto
40
39
zig build -Dtarget=x86_64-macos -Dcpu=znver4
41
40
zig build -Dtarget=aarch64-macos -Dcpu=apple_m2
42
41
zig build -Dtarget=wasm32-wasi
43
-
44
- rm -fr zig-cache zig-out
42
+ zig build -Dtarget=wasm32-freestanding
Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Install Zig
17
+ uses : mlugg/setup-zig@v1
18
+
19
+ - name : Unit tests
20
+ run : |
21
+ zig build test
22
+ zig build test -Drelease
Original file line number Diff line number Diff line change 16
16
run : |
17
17
grep -E 'const version =' build.zig | grep -E '"${{ github.ref_name }}"' || exit 78
18
18
echo "Zig build version check passed."
19
- grep -E 'COMPATIBILITY AnyNewerVersion' CMakeLists.txt | grep -E ' ${{ github.ref_name }} ' || exit 78
19
+ grep -E 'COMPATIBILITY AnyNewerVersion' CMakeLists.txt | grep -E ' ${{ github.ref_name }} ' || exit 78
20
20
echo "CMake version check passed."
You can’t perform that action at this time.
0 commit comments