-
Notifications
You must be signed in to change notification settings - Fork 56
47 lines (39 loc) · 925 Bytes
/
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
47
name: CI
on:
push:
branches:
- master
- tmp
pull_request:
paths:
- '**.zig'
- '**.c'
- '**.h'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
- name: Fmt
run: zig fmt . --check
if: matrix.os == 'ubuntu-latest'
# - name: Build
# run: zig build
# - name: Build 32-bit
# run: zig build -Dtarget=arm-linux
# if: matrix.os == 'ubuntu-latest'
# - name: Build release
# run: zig build -Doptimize=ReleaseSafe
# - name: Run Tests
# run: zig build test
- name: Run Tests in release mode
run: zig build test -Doptimize=ReleaseFast -Dcpu=haswell+aes