-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.14 KB
/
build.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
name: metapac build
on:
pull_request:
branches: ["main"]
paths-ignore:
- '*.md'
push:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use nightly Rust
run: |
rustup default nightly
rustup target add riscv32imafc-unknown-none-elf
- name: Prepare dependencies
run: |
./d download-all
- name: Build
run: |
./d gen
- name: Test
run: |
cd build/hpm-metapac/
cargo build --features pac,metadata,rt,memory-x,hpm6750 --target riscv32imafc-unknown-none-elf
cargo build --features pac,metadata,rt,memory-x,hpm6360 --target riscv32imafc-unknown-none-elf
cargo build --features pac,metadata,rt,memory-x,hpm6260 --target riscv32imafc-unknown-none-elf
cargo build --features pac,metadata,rt,memory-x,hpm5361 --target riscv32imafc-unknown-none-elf
cargo build --features pac,metadata,rt,memory-x,hpm6880 --target riscv32imafc-unknown-none-elf
cargo doc --features pac,metadata,rt,memory-x,hpm5361 --target riscv32imafc-unknown-none-elf