-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 932 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
41
42
on:
pull_request:
push:
branches:
- master
jobs:
behaviour-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.12.0-dev.3076+6e078883e
- name: Setup Python3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Restore cache
uses: actions/cache/restore@v3
with:
path: |
~/.cache/zig
zig-cache
key: osmium-${{hashFiles('build.zig.zon')}}
- name: Run 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')}}