-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1.29 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
name: Continuous integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
# On Linux, we check that the crate builds and links for all the toolchains and targets.
ci-linux:
strategy:
matrix:
# All generated code should be running on stable now, MRSV is 1.59.0
toolchain:
- stable
- nightly
- 1.59.0
target:
- x86_64-unknown-linux-gnu
- riscv32i-unknown-none-elf
- riscv32imc-unknown-none-elf
- riscv32imac-unknown-none-elf
- riscv64gc-unknown-linux-gnu
- riscv64gc-unknown-none-elf
cargo_flags:
- "--no-default-features"
- "--features=swi-clint"
- "--features=exti-plic,swi-clint"
include:
# Nightly is only for reference and allowed to fail
- rust: nightly
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Build library
run: cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}