Skip to content

Commit 630c708

Browse files
committed
Update ci.yml to build both log+defmt features
1 parent f3340ea commit 630c708

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Changelog check
2+
3+
on:
4+
pull_request:
5+
# We will not track changes for the following packages/directories.
6+
paths-ignore:
7+
- "/examples/"
8+
# Run on labeled/unlabeled in addition to defaults to detect
9+
# adding/removing skip-changelog labels.
10+
types: [opened, reopened, labeled, unlabeled, synchronize]
11+
12+
jobs:
13+
changelog:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout sources
18+
uses: actions/checkout@v4
19+
20+
- name: Check that changelog updated
21+
uses: dangoslen/changelog-enforcer@v3
22+
with:
23+
skipLabels: "skip-changelog"
24+
missingUpdateErrorMessage: "Please add a changelog entry in the CHANGELOG.md file."

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ jobs:
2424
name: Check
2525
strategy:
2626
matrix:
27+
toolchain:
28+
- stable
29+
- nightly
2730
os:
2831
- ubuntu-latest
2932
#- windows-latest
3033
#- macos-14
34+
features:
35+
- log
36+
- defmt
3137

3238
runs-on: ${{ matrix.os }}
3339

@@ -39,13 +45,17 @@ jobs:
3945
uses: actions/checkout@v4
4046

4147
- name: Install riscv32imac-unknown-none-elf target
42-
run: rustup target add riscv32imac-unknown-none-elf
48+
uses: dtolnay/rust-toolchain@v1
49+
with:
50+
target: riscv32imac-unknown-none-elf
51+
toolchain: ${{ matrix.toolchain }}
52+
components: rust-src
4353

4454
- name: Cache Dependencies
4555
uses: Swatinem/rust-cache@v2.7.5
4656

4757
- name: Run cargo check
48-
run: cargo check --all-features --locked
58+
run: cargo check --features ${{matrix.features}} --locked
4959

5060
fmt:
5161
name: Rustfmt

0 commit comments

Comments
 (0)