Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 4a2fd18

Browse files
authored
Merge pull request #6 from jessebraham/features/ci
Add a CI workflow to check (as extensively as possible) various feature combinations
2 parents a795863 + 7dca36e commit 4a2fd18

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
push:
6+
workflow_dispatch:
7+
8+
name: CI
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
check-riscv:
15+
name: Check RISC-V
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
printer: ["print-jtag-serial", "print-rtt", "print-uart"]
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions-rs/toolchain@v1
23+
with:
24+
profile: minimal
25+
target: riscv32imc-unknown-none-elf
26+
toolchain: nightly
27+
components: rust-src
28+
default: true
29+
- uses: Swatinem/rust-cache@v1
30+
- uses: actions-rs/cargo@v1
31+
with:
32+
command: check
33+
args: -Zbuild-std=core --target=riscv32imc-unknown-none-elf --features=esp32c3,panic-handler,exception-handler,${{ matrix.printer }}
34+
35+
check-xtensa:
36+
name: Check Xtensa
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
chip: [esp32, esp32s2, esp32s3]
41+
printer: ["print-rtt", "print-uart"] # The ESP32 and ESP32-S2 do *not* have USB Serial JTAG, so we'll skip them
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: esp-rs/[email protected]
45+
with:
46+
default: true
47+
ldproxy: false
48+
- uses: Swatinem/rust-cache@v1
49+
- uses: actions-rs/cargo@v1
50+
with:
51+
command: check
52+
args: -Zbuild-std=core --target=xtensa-${{ matrix.chip }}-none-elf --features=${{ matrix.chip }},panic-handler,exception-handler,${{ matrix.printer }}

0 commit comments

Comments
 (0)