-
Notifications
You must be signed in to change notification settings - Fork 48
81 lines (75 loc) · 1.92 KB
/
default.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Mimiker
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
verify_c_style:
name: Verify C code style
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: ./verify-format.sh
verify_py_style:
name: Verify Python code style
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- run: ./verify-pycodestyle.sh
build:
name: Build Mimiker
strategy:
fail-fast: false
matrix:
arch: [mips, aarch64, riscv32, riscv64]
build: [kasan, kcsan]
exclude:
- arch: riscv32
build: kcsan
- arch: riscv64
build: kcsan
runs-on: self-hosted
needs: [verify_c_style, verify_py_style]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: ./action.sh build ${{ matrix.arch }} ${{ matrix.build }}
- uses: actions/upload-artifact@v3
with:
name: "${{ matrix.arch }} ${{ matrix.build }} build"
path: |
bin/*/*.uelf
initrd.cpio
sys/dts/*.dtb
sys/mimiker.elf
sys/mimiker.elf.map
sys/mimiker.img.gz
usr.bin/*/*.uelf
tests:
name: Run Tests
strategy:
fail-fast: false
matrix:
arch: [mips, aarch64, riscv64]
build: [kasan, kcsan]
suite: [kernel, user]
exclude:
- arch: riscv64
build: kcsan
runs-on: self-hosted
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: "${{ matrix.arch }} ${{ matrix.build }} build"
- run: ./action.sh tests ${{ matrix.arch }} ${{ matrix.build }} ${{ matrix.suite }}