-
-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (44 loc) · 1.37 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
# Note: to work on CI, use https://github.com/nektos/act 👍
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
# need atomic CAS, so Cortex-M0/1 are out
QEMU_TARGET: thumbv7m-none-eabi
jobs:
test:
# want QEMU >=4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv7em-none-eabi,thumbv7em-none-eabihf,thumbv8m.main-none-eabi
- uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Install build dependencies
shell: bash
run: |
sudo apt-get update -y -qq >/dev/null
sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev make time qemu-system-arm >/dev/null
cc --version
qemu-system-arm --version
arm-none-eabi-gcc --version
- name: Check that all crates check without warning
run: make check
- name: Check formatting + lints
run: make lint
- name: Build PC
run: cargo build --release
shell: bash
- name: Build Cortex-M4 (soft)
run: cargo build --release --target thumbv7em-none-eabi
shell: bash
- name: Run all of the tests, including QEMU tests
run: make test
shell: bash