-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (57 loc) · 2.16 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
on:
push:
branches: [ staging, trying, master ]
pull_request:
name: Continuous integration
jobs:
ci-linux:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental || false }}
strategy:
matrix:
# All generated code should be running on stable now, MRSV is 1.60.0
rust: [nightly, stable, 1.60.0]
include:
# Nightly is only for reference and allowed to fail
- rust: nightly
experimental: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Install all Rust targets for ${{ matrix.rust }}
run: rustup target install --toolchain=${{ matrix.rust }} x86_64-unknown-linux-gnu riscv32imac-unknown-none-elf riscv32imc-unknown-none-elf riscv64imac-unknown-none-elf riscv64gc-unknown-none-elf
- name: Run CI script for riscv32imac-unknown-none-elf under ${{ matrix.rust }}
run: |
cargo check --target riscv32imac-unknown-none-elf
cargo check --target riscv32imac-unknown-none-elf --features g002
cargo check --target riscv32imac-unknown-none-elf --features virq
cargo check --target riscv32imac-unknown-none-elf --features g002,virq
cargo check --target riscv32imc-unknown-none-elf
cargo check --target riscv32imc-unknown-none-elf --features g002
cargo check --target riscv32imc-unknown-none-elf --features virq
cargo check --target riscv32imc-unknown-none-elf --features g002,virq
# On macOS and Windows, we at least make sure that the crate builds and links.
build-other:
strategy:
matrix:
os:
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build crate for host OS
run: |
cargo build
cargo build --features g002
cargo build --features virq
cargo build --features g002,virq