This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
92 lines (83 loc) · 1.8 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
name: ci
on:
push:
schedule:
- cron: "0 7 * * *"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.11.0
- name: Build and Test
run: zig build test
crosscompile-from-windows:
runs-on: windows-latest
strategy:
matrix:
target: [
#riscv64-linux-gnu,
#riscv64-linux-musl,
aarch64-linux-gnu,
aarch64-linux-musl,
aarch64-macos,
i386-linux-gnu,
i386-linux-musl,
x86_64-linux-gnu,
x86_64-linux-musl,
x86_64-macos,
]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.11.0
- name: Build
run: zig build
crosscompile-from-macos:
runs-on: macos-latest
strategy:
matrix:
target: [
#riscv64-linux-gnu,
#riscv64-linux-musl,
aarch64-linux-gnu,
aarch64-linux-musl,
i386-linux-gnu,
i386-linux-musl,
i386-windows,
x86_64-linux-gnu,
x86_64-linux-musl,
x86_64-windows-gnu,
]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.11.0
- name: Build
run: zig build