mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
Merge #381
381: Separate example check and run-pass tests r=korken89 a=AfoHT With the old 1.36.0 tests removed the full 20 free concurrent GHA jobs are not fully utilized. Separate the run-pass testing and the cargo check of examples Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
This commit is contained in:
commit
f493f21359
1 changed files with 48 additions and 1 deletions
49
.github/workflows/build.yml
vendored
49
.github/workflows/build.yml
vendored
|
@ -85,7 +85,7 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --target=${{ matrix.target }}
|
args: --target=${{ matrix.target }}
|
||||||
|
|
||||||
# Verify all examples
|
# Verify all examples, checks
|
||||||
checkexamples:
|
checkexamples:
|
||||||
name: checkexamples
|
name: checkexamples
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -140,6 +140,51 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --examples --target=${{ matrix.target }} --features __min_r1_43,${{ env.V7 }}
|
args: --examples --target=${{ matrix.target }} --features __min_r1_43,${{ env.V7 }}
|
||||||
|
|
||||||
|
# Verify the example output with run-pass tests
|
||||||
|
testexamples:
|
||||||
|
name: testexamples
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- thumbv7m-none-eabi
|
||||||
|
- thumbv6m-none-eabi
|
||||||
|
toolchain:
|
||||||
|
- stable
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Cache cargo dependencies
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
- ~/.cargo/bin/
|
||||||
|
- ~/.cargo/registry/index/
|
||||||
|
- ~/.cargo/registry/cache/
|
||||||
|
- ~/.cargo/git/db/
|
||||||
|
key: ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
${{ runner.OS }}-cargo-
|
||||||
|
|
||||||
|
- name: Cache build output dependencies
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
${{ runner.OS }}-build-
|
||||||
|
|
||||||
|
- name: Install Rust ${{ matrix.toolchain }} with target (${{ matrix.target }})
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{ matrix.toolchain }}
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
override: true
|
||||||
|
components: llvm-tools-preview
|
||||||
|
|
||||||
# Use precompiled binutils
|
# Use precompiled binutils
|
||||||
- name: cargo install cargo-binutils
|
- name: cargo install cargo-binutils
|
||||||
uses: actions-rs/install@v0.1
|
uses: actions-rs/install@v0.1
|
||||||
|
@ -657,6 +702,7 @@ jobs:
|
||||||
- style
|
- style
|
||||||
- check
|
- check
|
||||||
- checkexamples
|
- checkexamples
|
||||||
|
- testexamples
|
||||||
- checkmacros
|
- checkmacros
|
||||||
- testv7
|
- testv7
|
||||||
- testv6
|
- testv6
|
||||||
|
@ -673,6 +719,7 @@ jobs:
|
||||||
- style
|
- style
|
||||||
- check
|
- check
|
||||||
- checkexamples
|
- checkexamples
|
||||||
|
- testexamples
|
||||||
- checkmacros
|
- checkmacros
|
||||||
- testv7
|
- testv7
|
||||||
- testv6
|
- testv6
|
||||||
|
|
Loading…
Reference in a new issue