-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (34 loc) · 837 Bytes
/
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
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0
- name: Restore cache
uses: actions/cache/restore@v3
with:
path: |
~/.cache/zig
.zig-cache
key: osmium-${{hashFiles('build.zig.zon')}}
- name: Build Osmium
run: zig build
- name: Run Behaviour Tests
run: zig build test --summary all
- name: Save Cache
uses: actions/cache/save@v3
with:
path: |
~/.cache/zig
.zig-cache
key: osmium-${{hashFiles('build.zig.zon')}}