-
Notifications
You must be signed in to change notification settings - Fork 34
79 lines (62 loc) · 1.46 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: test
on:
push:
branches: [main, pre-release]
pull_request:
branches: [main, pre-release]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.11.0
- name: lint
run: |
zig fmt --check src/
zig fmt --check build.zig
build-unix:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.11.0
- name: build
run: zig build
- name: test
run: zig build test
# build-windows:
# runs-on: windows-latest
# defaults:
# run:
# shell: bash
# steps:
# - name: setup-git
# run: |
# git config --global core.autocrlf false
# git config --global core.eol lf
# - name: checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: setup-zig
# uses: goto-bus-stop/setup-zig@v1
# with:
# version: master
# - name: build
# run: |
# zig build -Dtarget=x86_64-windows --prefix tmp
# zig build
# - name: test
# run: zig build test