Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1659d34

Browse files
committedDec 2, 2024·
Update ci.yml + add changelog.yml
1 parent f3340ea commit 1659d34

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed
 

‎.github/workflows/changelog.yml

+24
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

+15-2
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,20 @@ 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
53+
54+
- name: Print rustc version
55+
run: rustc --version
4356

4457
- name: Cache Dependencies
4558
uses: Swatinem/rust-cache@v2.7.5
4659

4760
- name: Run cargo check
48-
run: cargo check --all-features --locked
61+
run: cargo check --features ${{matrix.features}} --locked
4962

5063
fmt:
5164
name: Rustfmt

0 commit comments

Comments
 (0)
Please sign in to comment.