Skip to content

Commit 1e76096

Browse files
Let GitHub Actions use goto-bus-stop/setup-zig
1 parent edda22b commit 1e76096

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
name: CI
2+
23
on:
34
push:
45
paths:
56
- '**.zig'
67
pull_request:
78
paths:
89
- '**.zig'
10+
schedule:
11+
- cron: '0 0 * * *'
912

1013
jobs:
11-
build:
12-
runs-on: ubuntu-latest
14+
test:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
runs-on: ${{ matrix.os }}
1319
steps:
14-
- uses: actions/checkout@v1
15-
- name: install software
16-
run: |
17-
ZIG=$(wget --quiet --output-document=- https://ziglang.org/download/index.json | jq --raw-output '.master."x86_64-linux".tarball')
18-
echo installing $ZIG into ./zig/
19-
wget --quiet --output-document=- $ZIG | tar Jx
20-
mv zig-linux-x86_64-* zig
21-
echo zig version $(./zig/zig version)
22-
git submodule update --init --recursive
23-
- name: build
24-
run: |
25-
export PATH=./zig:$PATH
26-
zig build test
20+
- uses: actions/checkout@v2
21+
with:
22+
submodules: true
23+
- uses: goto-bus-stop/setup-zig@v1
24+
with:
25+
version: master
26+
- name: Build
27+
run: zig build test

0 commit comments

Comments
 (0)