-
Notifications
You must be signed in to change notification settings - Fork 16
60 lines (51 loc) · 1.24 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
run-integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout mewz
uses: actions/checkout@v3
with:
repository: mewz-project/mewz
submodules: true
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.1
cache: true
- name: Install packages for running tests
uses: awalsh128/[email protected]
with:
packages: qemu-system mtools
- name: Cache mewz
uses: actions/cache@v2
with:
path:
zig-cache
key: ${{ runner.os }}-mewz
- name: Cache Newlib
uses: actions/cache@v2
with:
path:
build/newlib
key: ${{ runner.os }}-mewz-newlib
- name: Cache lwIP
uses: actions/cache@v2
with:
path:
build/lwip
key: ${{ runner.os }}-mewz-lwip
- name: Build Mewz
run: zig build -Dtest=true -Doptimize=ReleaseFast
- name: Run tests
run: |
zig build -Dtest=true -Doptimize=ReleaseFast run