-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Changelog check | ||
|
||
on: | ||
pull_request: | ||
# We will not track changes for the following packages/directories. | ||
paths-ignore: | ||
- "/examples/" | ||
# Run on labeled/unlabeled in addition to defaults to detect | ||
# adding/removing skip-changelog labels. | ||
types: [opened, reopened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check that changelog updated | ||
uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
skipLabels: "skip-changelog" | ||
missingUpdateErrorMessage: "Please add a changelog entry in the CHANGELOG.md file." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,16 @@ jobs: | |
name: Check | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
- nightly | ||
os: | ||
- ubuntu-latest | ||
#- windows-latest | ||
#- macos-14 | ||
features: | ||
- log | ||
- defmt | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
|
@@ -39,13 +45,20 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Install riscv32imac-unknown-none-elf target | ||
run: rustup target add riscv32imac-unknown-none-elf | ||
uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
target: riscv32imac-unknown-none-elf | ||
toolchain: ${{ matrix.toolchain }} | ||
components: rust-src | ||
|
||
- name: Print rustc version | ||
run: rustc --version | ||
|
||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Run cargo check | ||
run: cargo check --all-features --locked | ||
run: cargo check --features ${{matrix.features}} --locked | ||
|
||
fmt: | ||
name: Rustfmt | ||
|