-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (44 loc) · 1.15 KB
/
zdt-tests.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
48
name: zdt-tests
on:
push:
# branches: [master]
tags: # run action on tag push only
- "v*"
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# build-tests-stable:
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# runs-on: ${{matrix.os}}
# steps:
# - uses: actions/checkout@main
# - uses: goto-bus-stop/setup-zig@v2
# with:
# version: 0.12.0
# - run: zig build tests
build-tests-master:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
# - uses: actions/checkout@main
# - uses: goto-bus-stop/setup-zig@v2
- uses: actions/checkout@main
- uses: mlugg/setup-zig@v1
with:
version: master
- run: zig build tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: mlugg/setup-zig@v1
- run: zig fmt --check build.zig zdt.zig lib/**/*.zig tests/*.zig