aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-01-22 15:17:42 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2022-01-22 15:17:42 +0000
commit391fb7edb90131f295ae759ff780f2a4233dada2 (patch)
treeb741c9324aca7c68fae566afdcabf34c8175a134
parenta25cb3eabc223be5a4208db9f857f9c849eb057e (diff)
downloadcortex-m-391fb7edb90131f295ae759ff780f2a4233dada2.tar.gz
cortex-m-391fb7edb90131f295ae759ff780f2a4233dada2.tar.zst
cortex-m-391fb7edb90131f295ae759ff780f2a4233dada2.zip
Add cortex-m-rt tests to scheduled CI runs
-rw-r--r--.github/workflows/cron.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
index bc31bb2..d765dba 100644
--- a/.github/workflows/cron.yml
+++ b/.github/workflows/cron.yml
@@ -28,3 +28,48 @@ jobs:
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ rt-ci-linux:
+ runs-on: ubuntu-20.04
+ continue-on-error: ${{ matrix.experimental || false }}
+ defaults:
+ run:
+ working-directory: cortex-m-rt
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - name: Install all Rust targets for stable
+ run: rustup target install --toolchain=stable thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
+ - name: Install qemu and gcc
+ run: sudo apt-get update && sudo apt-get install qemu-system-arm gcc-arm-none-eabi
+ - name: Run CI script for x86_64-unknown-linux-gnu under stable
+ run: TARGET=x86_64-unknown-linux-gnu TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv6m-none-eabi under stable
+ run: TARGET=thumbv6m-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv7m-none-eabi under stable
+ run: TARGET=thumbv7m-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv7em-none-eabi under stable
+ run: TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv7em-none-eabihf under stable
+ run: TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv8m.base-none-eabi under stable
+ run: TARGET=thumbv8m.base-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv8m.main-none-eabi under stable
+ run: TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - name: Run CI script for thumbv8m.main-none-eabihf under stable
+ run: TARGET=thumbv8m.main-none-eabihf TRAVIS_RUST_VERSION=stable bash ci/script.sh
+ - uses: imjohnbo/issue-bot@v2
+ if: failure()
+ with:
+ title: CI Failure
+ labels: ci
+ body: |
+ Scheduled CI run failed. Details:
+
+ https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}