forked from nuta/kerla
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.19 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Docker
run: docker ps
- name: Set up Rust
run: |
rustup override set nightly
rustup component add llvm-tools-preview rust-src
- name: Install cargo crates
run: cargo install cargo-binutils rustfilt
- name: Build Kerla
run: make RELEASE=1
- name: Install QEMU
run: sudo apt-get update && sudo apt-get install -y qemu-system
- name: Run unit tests
run: make test RELEASE=1
- name: Run integration tests
run: >
make run
RELEASE=1
INIT_SCRIPT="TESTS_DIR=/integration_tests /integration_tests/run.sh"
DISABLE_AUTO_CR_PRINT=1
| tee run.log
- name: Check if all integration tests are passed
run: cat run.log | grep "Passed all integration tests"