-
Notifications
You must be signed in to change notification settings - Fork 15
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 #42 from eldruin/updates
Update CI + GHMQ + Improve readme
- Loading branch information
Showing
7 changed files
with
81 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,47 +1,46 @@ | ||
on: | ||
push: | ||
branches: [ staging, trying, master ] | ||
pull_request: | ||
push: # Run CI for all branches except GitHub merge queue tmp branches | ||
branches-ignore: | ||
- "gh-readonly-queue/**" | ||
pull_request: # Run CI for PRs on any branch | ||
merge_group: # Run CI for the GitHub merge queue | ||
|
||
name: Continuous integration | ||
|
||
env: | ||
RUSTFLAGS: '-D warnings' | ||
RUSTFLAGS: '--deny warnings' | ||
|
||
jobs: | ||
ci-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# All generated code should be running on stable now | ||
rust: [stable] | ||
rust: | ||
- stable | ||
- 1.62.0 # MSRV | ||
|
||
# The default target we're compiling on and for | ||
TARGET: [x86_64-unknown-linux-gnu] | ||
features: | ||
- '' | ||
- 'defmt-0-3' | ||
|
||
include: | ||
# Test MSRV | ||
- rust: 1.60.0 | ||
TARGET: x86_64-unknown-linux-gnu | ||
target: | ||
- x86_64-unknown-linux-gnu | ||
- thumbv6m-none-eabi | ||
|
||
include: | ||
# Test nightly but don't fail | ||
- rust: nightly | ||
target: x86_64-unknown-linux-gnu | ||
features: '' | ||
experimental: true | ||
TARGET: x86_64-unknown-linux-gnu | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.TARGET }} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --target=${{ matrix.TARGET }} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --target=${{ matrix.TARGET }} | ||
target: ${{ matrix.target }} | ||
|
||
- run: cargo check --target=${{ matrix.target }} --features=${{ matrix.features }} | ||
- run: cargo test --target=${{ matrix.target }} --features=${{ matrix.features }} | ||
if: contains(matrix.target, 'linux') |
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