mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +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
|
command: check
|
||||||
args: --manifest-path macros/Cargo.toml --target=${{ matrix.target }}
|
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
|
# Run test suite for thumbv7m
|
||||||
testv7:
|
testv7:
|
||||||
name: testv7
|
name: testv7
|
||||||
|
@ -586,7 +636,9 @@ jobs:
|
||||||
- style
|
- style
|
||||||
- check
|
- check
|
||||||
- checkexamples
|
- checkexamples
|
||||||
|
- testexamples
|
||||||
- checkmacros
|
- checkmacros
|
||||||
|
- testmacros
|
||||||
- testv7
|
- testv7
|
||||||
- testv6
|
- testv6
|
||||||
- docs
|
- docs
|
||||||
|
@ -704,6 +756,7 @@ jobs:
|
||||||
- checkexamples
|
- checkexamples
|
||||||
- testexamples
|
- testexamples
|
||||||
- checkmacros
|
- checkmacros
|
||||||
|
- testmacros
|
||||||
- testv7
|
- testv7
|
||||||
- testv6
|
- testv6
|
||||||
- docs
|
- docs
|
||||||
|
@ -721,6 +774,7 @@ jobs:
|
||||||
- checkexamples
|
- checkexamples
|
||||||
- testexamples
|
- testexamples
|
||||||
- checkmacros
|
- checkmacros
|
||||||
|
- testmacros
|
||||||
- testv7
|
- testv7
|
||||||
- testv6
|
- testv6
|
||||||
- docs
|
- docs
|
||||||
|
|
Loading…
Reference in a new issue