Move tests into seperate workflow

This commit is contained in:
9names 2021-05-04 17:52:48 +10:00
parent 41c6db6811
commit 691f43c17b
2 changed files with 20 additions and 5 deletions

View file

@ -2,7 +2,7 @@ on: [push, pull_request]
name: CI Checks name: CI Checks
jobs: jobs:
check: check:
name: Check and Lint name: cargo-check
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -16,7 +16,3 @@ jobs:
with: with:
command: check command: check
args: --workspace args: --workspace
- uses: actions-rs/cargo@v1
with:
command: test
args: --target x86_64-unknown-linux-gnu

19
.github/workflows/tests_host.yml vendored Normal file
View file

@ -0,0 +1,19 @@
on: [push, pull_request]
name: On-host tests
jobs:
check:
name: Check and Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv6m-none-eabi
override: true
profile: minimal
## Tests are currently not working on host - disabled until we can find a good solution
# - uses: actions-rs/cargo@v1
# with:
# command: test
# args: --target x86_64-unknown-linux-gnu