|
@@ -13,48 +13,46 @@ jobs:
|
|
|
build:
|
|
|
runs-on: ubuntu-latest
|
|
|
strategy:
|
|
|
- matrix:
|
|
|
- rust:
|
|
|
- - stable
|
|
|
- - nightly
|
|
|
- - 1.52.1 # MSVR
|
|
|
+ matrix:
|
|
|
+ rust:
|
|
|
+ - stable
|
|
|
+ - nightly
|
|
|
+ - 1.52.1 # MSVR
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Build
|
|
|
- run: cargo build --verbose
|
|
|
- - name: Run tests
|
|
|
- run: cargo test --verbose
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Build
|
|
|
+ run: cargo build --verbose
|
|
|
+ - name: Run tests
|
|
|
+ run: cargo test --verbose
|
|
|
|
|
|
build_no_std:
|
|
|
- runs-on: ubuntu-latest
|
|
|
- strategy:
|
|
|
- matrix:
|
|
|
- rust:
|
|
|
- - stable
|
|
|
- - nightly
|
|
|
- - 1.52.1 # MSVR
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: "Rustup: install some no_std target"
|
|
|
- run: rustup target add thumbv7em-none-eabihf
|
|
|
- - name: Build (no_std)
|
|
|
- run: cargo build --target thumbv7em-none-eabihf
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ strategy:
|
|
|
+ matrix:
|
|
|
+ rust:
|
|
|
+ - stable
|
|
|
+ - nightly
|
|
|
+ - 1.52.1 # MSVR
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: "Rustup: install some no_std target"
|
|
|
+ run: rustup target add thumbv7em-none-eabihf
|
|
|
+ - name: Build (no_std)
|
|
|
+ run: cargo build --target thumbv7em-none-eabihf
|
|
|
|
|
|
|
|
|
# As discussed, these tasks are optional for PRs.
|
|
|
style_checks:
|
|
|
-
|
|
|
runs-on: ubuntu-latest
|
|
|
strategy:
|
|
|
- matrix:
|
|
|
- rust:
|
|
|
- - stable
|
|
|
-
|
|
|
+ matrix:
|
|
|
+ rust:
|
|
|
+ - stable
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - name: Rustfmt
|
|
|
- run: cargo fmt -- --check
|
|
|
- - name: Clippy
|
|
|
- run: cargo clippy
|
|
|
- - name: Rustdoc
|
|
|
- run: cargo doc
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Rustfmt
|
|
|
+ run: cargo fmt -- --check
|
|
|
+ - name: Clippy
|
|
|
+ run: cargo clippy
|
|
|
+ - name: Rustdoc
|
|
|
+ run: cargo doc
|