-
Notifications
You must be signed in to change notification settings - Fork 8
65 lines (57 loc) · 1.84 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
61
62
63
64
65
on:
push:
branches: [main]
pull_request:
name: Continuous integration
jobs:
ci-linux:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental || false }}
strategy:
matrix:
rust: [nightly, stable]
crate: [d1-pac, r528-pac, xr806-pac, v853-pac]
include:
# Nightly is only for reference and allowed to fail
- rust: nightly
experimental: true
- crate: d1-pac
target: riscv64imac-unknown-none-elf
- crate: r528-pac
target: armv7a-none-eabi
- crate: xr806-pac
target: thumbv8m.main-none-eabi
- crate: v853-pac
target: armv7a-none-eabi
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup default ${{ matrix.rust }}
- name: Install Rust targets
run: rustup target add --toolchain=${{ matrix.rust }} ${{ matrix.target }}
- name: Build crate
run: cargo build --package ${{ matrix.crate }} --target ${{ matrix.target }}
# On macOS and Windows, we at least make sure that the crate builds and links.
build-other:
strategy:
matrix:
os:
- macOS-latest
- windows-latest
crate: [d1-pac, r528-pac, xr806-pac, v853-pac]
include:
- crate: d1-pac
target: riscv64imac-unknown-none-elf
- crate: r528-pac
target: armv7a-none-eabi
- crate: xr806-pac
target: thumbv8m.main-none-eabi
- crate: v853-pac
target: armv7a-none-eabi
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Rust targets
run: rustup target add ${{ matrix.target }}
- name: Build crate
run: cargo build --package ${{ matrix.crate }} --target ${{ matrix.target }}