mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Merge #382
382: Run the macro tests r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
This commit is contained in:
commit
f5cf64e35c
1 changed files with 54 additions and 0 deletions
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
|
@ -386,6 +386,56 @@ jobs:
|
|||
command: check
|
||||
args: --manifest-path macros/Cargo.toml --target=${{ matrix.target }}
|
||||
|
||||
# Run the macros test-suite
|
||||
testmacros:
|
||||
name: testmacros
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- x86_64-unknown-linux-gnu
|
||||
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
|
||||
|
||||
- name: cargo check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: false
|
||||
command: test
|
||||
args: --manifest-path macros/Cargo.toml --target=${{ matrix.target }}
|
||||
|
||||
# Run test suite for thumbv7m
|
||||
testv7:
|
||||
name: testv7
|
||||
|
@ -586,7 +636,9 @@ jobs:
|
|||
- style
|
||||
- check
|
||||
- checkexamples
|
||||
- testexamples
|
||||
- checkmacros
|
||||
- testmacros
|
||||
- testv7
|
||||
- testv6
|
||||
- docs
|
||||
|
@ -704,6 +756,7 @@ jobs:
|
|||
- checkexamples
|
||||
- testexamples
|
||||
- checkmacros
|
||||
- testmacros
|
||||
- testv7
|
||||
- testv6
|
||||
- docs
|
||||
|
@ -721,6 +774,7 @@ jobs:
|
|||
- checkexamples
|
||||
- testexamples
|
||||
- checkmacros
|
||||
- testmacros
|
||||
- testv7
|
||||
- testv6
|
||||
- docs
|
||||
|
|
Loading…
Reference in a new issue