Skip to content

Commit 391fb7e

Browse files
committed
Add cortex-m-rt tests to scheduled CI runs
1 parent a25cb3e commit 391fb7e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/cron.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,48 @@ jobs:
2828
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
rt-ci-linux:
33+
runs-on: ubuntu-20.04
34+
continue-on-error: ${{ matrix.experimental || false }}
35+
defaults:
36+
run:
37+
working-directory: cortex-m-rt
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions-rs/toolchain@v1
41+
with:
42+
profile: minimal
43+
toolchain: stable
44+
override: true
45+
- name: Install all Rust targets for stable
46+
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
47+
- name: Install qemu and gcc
48+
run: sudo apt-get update && sudo apt-get install qemu-system-arm gcc-arm-none-eabi
49+
- name: Run CI script for x86_64-unknown-linux-gnu under stable
50+
run: TARGET=x86_64-unknown-linux-gnu TRAVIS_RUST_VERSION=stable bash ci/script.sh
51+
- name: Run CI script for thumbv6m-none-eabi under stable
52+
run: TARGET=thumbv6m-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
53+
- name: Run CI script for thumbv7m-none-eabi under stable
54+
run: TARGET=thumbv7m-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
55+
- name: Run CI script for thumbv7em-none-eabi under stable
56+
run: TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
57+
- name: Run CI script for thumbv7em-none-eabihf under stable
58+
run: TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=stable bash ci/script.sh
59+
- name: Run CI script for thumbv8m.base-none-eabi under stable
60+
run: TARGET=thumbv8m.base-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
61+
- name: Run CI script for thumbv8m.main-none-eabi under stable
62+
run: TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=stable bash ci/script.sh
63+
- name: Run CI script for thumbv8m.main-none-eabihf under stable
64+
run: TARGET=thumbv8m.main-none-eabihf TRAVIS_RUST_VERSION=stable bash ci/script.sh
65+
- uses: imjohnbo/issue-bot@v2
66+
if: failure()
67+
with:
68+
title: CI Failure
69+
labels: ci
70+
body: |
71+
Scheduled CI run failed. Details:
72+
73+
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)