-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from dlkj/ci_and_defmt
add CI and defmt feature
- Loading branch information
Showing
12 changed files
with
258 additions
and
113 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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "cargo" | ||
directory: "/examples/rp2040/" | ||
schedule: | ||
interval: "daily" |
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,18 @@ | ||
name: Security audit | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
push: | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rustsec/audit-check@v1 | ||
with: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: [push, pull_request] | ||
|
||
name: Examples RP2040 build | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check_format_build: | ||
name: Examples - Check, Format, Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
#Checkout source | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
#toolchain and tools | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: thumbv6m-none-eabi | ||
components: rustfmt, clippy | ||
- name: Install flip-link linker | ||
run: cargo install flip-link | ||
#build and lint | ||
- name: Run cargo check - examples rp2040 | ||
working-directory: ./examples/rp2040/ | ||
run: cargo check | ||
- name: Run cargo fmt - examples rp2040 | ||
working-directory: ./examples/rp2040/ | ||
run: cargo fmt --all -- --check | ||
- name: Run cargo clippy - examples rp2040 | ||
working-directory: ./examples/rp2040/ | ||
run: cargo clippy -- -D warnings | ||
- name: Run cargo build - examples rp2040 | ||
working-directory: ./examples/rp2040/ | ||
run: cargo build |
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,38 @@ | ||
on: [push, pull_request] | ||
|
||
name: Lib build | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check_format_build: | ||
name: Lib - Check, Format, Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
#Checkout source | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
#toolchain and tools | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
#build and lint | ||
- name: Run cargo check | ||
run: cargo check | ||
- name: Run cargo fmt | ||
run: cargo fmt --all -- --check | ||
- name: Run cargo clippy | ||
run: cargo clippy -- -D warnings | ||
- name: Run cargo clippy with defmt | ||
run: cargo clippy --features defmt -- -D warnings | ||
- name: Run cargo clippy on tests | ||
run: cargo clippy --tests -- -D warnings | ||
- name: Run cargo test | ||
run: cargo test | ||
- name: Run cargo build | ||
run: cargo build | ||
- name: Run cargo build with defmt | ||
run: cargo build --features defmt |
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
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
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
Oops, something went wrong.