mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Testing CI
This commit is contained in:
parent
6e233bec02
commit
295c645062
2 changed files with 46 additions and 9 deletions
4
.github/bors.toml
vendored
4
.github/bors.toml
vendored
|
@ -1,5 +1,3 @@
|
||||||
block_labels = ["S-blocked"]
|
block_labels = ["S-blocked"]
|
||||||
delete_merged_branches = true
|
delete_merged_branches = true
|
||||||
status = [
|
status = ["ci"]
|
||||||
"Build",
|
|
||||||
]
|
|
||||||
|
|
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
|
@ -1,13 +1,11 @@
|
||||||
name: Build
|
name: Build
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- ghatest
|
- staging
|
||||||
pull_request:
|
- trying`
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- ghatest
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
@ -15,7 +13,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
# Run cargo fmt --check, includes macros/
|
# Run cargo fmt --check, includes macros/
|
||||||
style:
|
style:
|
||||||
name: Check Style with cargo fmt
|
name: style
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -37,6 +35,7 @@ jobs:
|
||||||
|
|
||||||
# Compilation check
|
# Compilation check
|
||||||
check:
|
check:
|
||||||
|
name: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -72,6 +71,7 @@ jobs:
|
||||||
|
|
||||||
# Verify all examples
|
# Verify all examples
|
||||||
checkexamples:
|
checkexamples:
|
||||||
|
name: checkexamples
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -254,6 +254,7 @@ jobs:
|
||||||
|
|
||||||
# Check the correctness of macros/ crate
|
# Check the correctness of macros/ crate
|
||||||
checkmacros:
|
checkmacros:
|
||||||
|
name: checkmacros
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -286,6 +287,7 @@ jobs:
|
||||||
|
|
||||||
# Run test suite for thumbv7m
|
# Run test suite for thumbv7m
|
||||||
testv7:
|
testv7:
|
||||||
|
name: testv7
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -308,6 +310,7 @@ jobs:
|
||||||
|
|
||||||
# Run test suite for thumbv6m
|
# Run test suite for thumbv6m
|
||||||
testv6:
|
testv6:
|
||||||
|
name: testv6
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -330,6 +333,7 @@ jobs:
|
||||||
|
|
||||||
# Verify all multicore examples
|
# Verify all multicore examples
|
||||||
checkmulticore:
|
checkmulticore:
|
||||||
|
name: checkmulticore
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -377,3 +381,38 @@ jobs:
|
||||||
for ex in ${exs[@]}; do
|
for ex in ${exs[@]}; do
|
||||||
cargo-microamp --example=$ex --target thumbv7m-none-eabi,thumbv6m-none-eabi --check
|
cargo-microamp --example=$ex --target thumbv7m-none-eabi,thumbv6m-none-eabi --check
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
|
||||||
|
#
|
||||||
|
# ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
|
||||||
|
|
||||||
|
ci-success:
|
||||||
|
name: ci
|
||||||
|
if: github.event_name == 'push' && success()
|
||||||
|
needs:
|
||||||
|
- style
|
||||||
|
- check
|
||||||
|
- checkexamples
|
||||||
|
- checkmacros
|
||||||
|
- testv7
|
||||||
|
- testv6
|
||||||
|
- checkmulticore
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Mark the job as a success
|
||||||
|
run: exit 0
|
||||||
|
ci-failure:
|
||||||
|
name: ci
|
||||||
|
if: github.event_name == 'push' && !success()
|
||||||
|
needs:
|
||||||
|
- style
|
||||||
|
- check
|
||||||
|
- checkexamples
|
||||||
|
- checkmacros
|
||||||
|
- testv7
|
||||||
|
- testv6
|
||||||
|
- checkmulticore
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Mark the job as a failure
|
||||||
|
run: exit 1
|
||||||
|
|
Loading…
Reference in a new issue