-
Notifications
You must be signed in to change notification settings - Fork 67
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
55 changed files
with
1,283 additions
and
1,112 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
msrv = "1.54" | ||
msrv = "1.59" |
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,25 @@ | ||
name: rust format | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
merge_group: | ||
|
||
check-doc: | ||
name: Check Documentation Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
target: thumbv7em-none-eabihf | ||
- run: cargo doc --features=stm32f303xc | ||
|
||
cargo-deny: | ||
name: Cargo Deny | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 |
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,20 @@ | ||
on: | ||
pull_request_target: | ||
types: [labeled, unlabeled, opened, synchronize, reopened] | ||
|
||
name: Changelog check | ||
|
||
jobs: | ||
changelog: | ||
name: Changelog check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Changelog updated | ||
uses: Zomzog/changelog-checker@v1.3.0 | ||
with: | ||
fileName: CHANGELOG.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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,21 @@ | ||
name: clippy | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
target: thumbv7em-none-eabihf | ||
components: clippy | ||
- run: cargo clippy --features=stm32f303xc --lib --examples -- -D warnings | ||
|
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,20 @@ | ||
name: codegen | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
codegen: | ||
name: Check Codegen | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
component: clippy | ||
target: x86_64-unknown-linux-gnu | ||
- run: cargo clippy -p codegen --target x86_64-unknown-linux-gnu | ||
|
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,31 @@ | ||
name: markdown | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
markdown-lint: | ||
name: Markdown Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: nosborn/github-action-markdown-cli@v3.3.0 | ||
with: | ||
files: . | ||
config_file: .markdownlint.yml | ||
ignore_files: target/ | ||
|
||
link-checker: | ||
name: Link Checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check URLs in documentation | ||
uses: lycheeverse/lychee-action@v1.8.0 | ||
with: | ||
args: --verbose --no-progress "**/*.md" "**/*.rs" "Cargo.toml" "**/Cargo.toml" -h accept=text/html | ||
|
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,34 @@ | ||
name: MSRV | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
# This is our MSRV. However this is only for documentation | ||
# purposes and should be increased if newer features are used. | ||
# This should not stop anyone from bumping the MSRV. | ||
check-msrv: | ||
name: Check MSRV | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: 1.60.0 | ||
target: thumbv7em-none-eabihf | ||
- run: cargo check --features=stm32f303xc,usb,rt,can,ld --lib | ||
|
||
check-min-deps: | ||
name: Check Minimal Dependency Versions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
target: thumbv7em-none-eabihf | ||
- run: cargo +nightly update -Z minimal-versions | ||
- run: cargo tree | ||
- run: cargo check --features=stm32f303xc,usb,rt,can,ld --lib --examples | ||
|
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,20 @@ | ||
name: rust format | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
rustfmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
|
Oops, something went wrong.