diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-06-11 21:00:32 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-06-11 21:00:32 +0200 |
| commit | 295c64506232fb5814dcf9fcca55dd59f7d31515 (patch) | |
| tree | ce7d199a8c1d8c8114a3437c9e9c4810f515d84e /.github/workflows/build.yml | |
| parent | 6e233bec029810716c5a48113b22f4446204cfab (diff) | |
Testing CI
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00086ff..a310ae9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,13 +1,11 @@ name: Build on: - push: - branches: - - master - - ghatest pull_request: + push: branches: - master - - ghatest + - staging + - trying` env: CARGO_TERM_COLOR: always @@ -15,7 +13,7 @@ env: jobs: # Run cargo fmt --check, includes macros/ style: - name: Check Style with cargo fmt + name: style runs-on: ubuntu-latest steps: - name: Checkout @@ -37,6 +35,7 @@ jobs: # Compilation check check: + name: check runs-on: ubuntu-latest strategy: matrix: @@ -72,6 +71,7 @@ jobs: # Verify all examples checkexamples: + name: checkexamples runs-on: ubuntu-latest strategy: matrix: @@ -254,6 +254,7 @@ jobs: # Check the correctness of macros/ crate checkmacros: + name: checkmacros runs-on: ubuntu-latest strategy: matrix: @@ -286,6 +287,7 @@ jobs: # Run test suite for thumbv7m testv7: + name: testv7 runs-on: ubuntu-latest steps: - name: Checkout @@ -308,6 +310,7 @@ jobs: # Run test suite for thumbv6m testv6: + name: testv6 runs-on: ubuntu-latest steps: - name: Checkout @@ -330,6 +333,7 @@ jobs: # Verify all multicore examples checkmulticore: + name: checkmulticore runs-on: ubuntu-latest strategy: matrix: @@ -377,3 +381,38 @@ jobs: for ex in ${exs[@]}; do cargo-microamp --example=$ex --target thumbv7m-none-eabi,thumbv6m-none-eabi --check 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 |
