-
-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (44 loc) · 1.21 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
default_tools:
name: Test default system tools
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
# https://github.com/kubkon/zld/issues/44
# os: [macos, ubuntu, windows]
os: [macos, ubuntu]
steps:
- if: matrix.os == 'windows'
run: git config --global core.autocrlf false
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: zig version
- run: zig fmt --check src
- run: zig build test -Dhas-static
gcc_musl:
name: Test gcc with musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: sudo apt-get install -y musl-tools
- run: zig version
- run: CC=musl-gcc zig build test -Dhas-static -Dmusl
clang_glibc:
name: Test clang with glibc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: sudo apt-get install -y clang
- run: zig version
- run: CC=clang zig build test -Dhas-static -Dsystem-compiler=clang