File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+ push :
7
+ branches :
8
+ - main
9
+ concurrency :
10
+ # Cancels pending runs when a PR gets updated.
11
+ group : ${{ github.head_ref || github.run_id }}-${{ github.actor }}
12
+ cancel-in-progress : true
13
+ jobs :
14
+ lint-and-build-and-test :
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ os : [ubuntu-latest, windows-latest, macos-latest]
19
+ runs-on : ${{matrix.os}}
20
+ steps :
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v3
23
+ - name : Read .zig-version
24
+ id : zigversion
25
+ uses : juliangruber/read-file-action@v1
26
+ with :
27
+ path : ./.zigversion
28
+ - name : Install Zig
29
+ uses : mlugg/setup-zig@v1
30
+ with :
31
+ version : ${{ steps.zigversion.outputs.content }}
32
+ - name : Check format
33
+ continue-on-error : true
34
+ run : zig fmt --check .
35
+ - name : Build and run tests
36
+ run : zig build test
Original file line number Diff line number Diff line change
1
+ 0.14.0-dev.1911+3bf89f55c
You can’t perform that action at this time.
0 commit comments