-
Notifications
You must be signed in to change notification settings - Fork 35
56 lines (47 loc) · 1.75 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
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
paths-ignore:
- "**/README.md"
push:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Cancel any currently running workflows from the same PR, branch, or
# tag when a new workflow is triggered.
#
# https://stackoverflow.com/a/66336834
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
# --------------------------------------------------------------------------
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [
# Xtensa:
{ package: "esp32", target: "xtensa-esp32-none-elf" },
{ package: "esp32s2", target: "xtensa-esp32s2-none-elf" },
{ package: "esp32s3", target: "xtensa-esp32s3-none-elf" },
# RISC-V:
{ package: "esp32c2", target: "riscv32imc-unknown-none-elf" },
{ package: "esp32c3", target: "riscv32imc-unknown-none-elf" },
{ package: "esp32c6", target: "riscv32imac-unknown-none-elf" },
{ package: "esp32h2", target: "riscv32imac-unknown-none-elf" },
{ package: "esp32p4", target: "riscv32imafc-unknown-none-elf" },
# RISC-V (Ultra) Low-Power:
{ package: "esp32c6-lp", target: "riscv32imac-unknown-none-elf" },
{ package: "esp32s2-ulp", target: "riscv32imc-unknown-none-elf" },
{ package: "esp32s3-ulp", target: "riscv32imc-unknown-none-elf" },
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/check
with:
msrv: "1.76.0"
package: ${{ matrix.build.package }}
target: ${{ matrix.build.target }}