forked from marler8997/ziglibc
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.07 KB
/
ci.yml
File metadata and controls
46 lines (39 loc) · 1.07 KB
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
name: CI
on:
push:
pull_request:
env:
ZIG_VERSION: 0.15.2
ZIG_GLOBAL_CACHE_DIR: .zig-global-cache
jobs:
test-and-conformance:
name: Test + Conformance (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Cache Zig and dependencies
uses: actions/cache@v4
with:
path: |
.zig-cache
.zig-global-cache
dep
key: ${{ runner.os }}-zig-${{ env.ZIG_VERSION }}-${{ hashFiles('build.zig', 'src/**/*.zig', 'inc/**/*.h', 'test/**/*', '.github/workflows/ci.yml') }}
restore-keys: |
${{ runner.os }}-zig-${{ env.ZIG_VERSION }}-
- name: Run unit/integration tests
run: zig build test
- name: Run conformance suites
run: zig build conformance