Skip to content

Commit a6b011a

Browse files
Merge #285
285: Try combining some steps to speed up CI r=jonas-schievink a=therealprof Signed-off-by: Daniel Egger <[email protected]> Co-authored-by: Daniel Egger <[email protected]>
2 parents 1149293 + ebba386 commit a6b011a

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

cortex-m-rt/.github/bors.toml

+2-12
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,7 @@ block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
44
status = [
5-
"ci-linux (stable, x86_64-unknown-linux-gnu)",
6-
"ci-linux (stable, thumbv6m-none-eabi)",
7-
"ci-linux (stable, thumbv7m-none-eabi)",
8-
"ci-linux (stable, thumbv7em-none-eabi)",
9-
"ci-linux (stable, thumbv7em-none-eabihf)",
10-
"ci-linux (stable, thumbv8m.main-none-eabi)",
11-
"ci-linux (1.39.0, x86_64-unknown-linux-gnu)",
12-
"ci-linux (1.39.0, thumbv6m-none-eabi)",
13-
"ci-linux (1.39.0, thumbv7m-none-eabi)",
14-
"ci-linux (1.39.0, thumbv7em-none-eabi)",
15-
"ci-linux (1.39.0, thumbv7em-none-eabihf)",
16-
"ci-linux (1.39.0, thumbv8m.main-none-eabi)",
5+
"ci-linux (stable)",
6+
"ci-linux (1.39.0)",
177
"Rustfmt"
188
]

cortex-m-rt/.github/workflows/ci.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
# All generated code should be running on stable now
1414
rust: [nightly, stable, 1.39.0]
1515

16-
# The default target we're compiling on and for
17-
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi, thumbv7em-none-eabi, thumbv7em-none-eabihf, thumbv8m.main-none-eabi]
18-
1916
include:
2017
# Nightly is only for reference and allowed to fail
2118
- rust: nightly
@@ -27,10 +24,20 @@ jobs:
2724
with:
2825
profile: minimal
2926
toolchain: ${{ matrix.rust }}
30-
target: ${{ matrix.TARGET }}
3127
override: true
32-
components: rustfmt
28+
- name: Install all Rust targets for ${{ matrix.rust }}
29+
run: rustup target install --toolchain=${{ matrix.rust }} thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.main-none-eabi
3330
- name: Install qemu and gcc
3431
run: sudo apt-get update && sudo apt-get install qemu-system-arm gcc-arm-none-eabi
35-
- name: Run CI script for ${{ matrix.TARGET }} under ${{ matrix.rust }}
36-
run: TARGET=${{ matrix.TARGET }} TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
32+
- name: Run CI script for x86_64-unknown-linux-gnu under ${{ matrix.rust }}
33+
run: TARGET=x86_64-unknown-linux-gnu TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
34+
- name: Run CI script for thumbv6m-none-eabi under ${{ matrix.rust }}
35+
run: TARGET=thumbv6m-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
36+
- name: Run CI script for thumbv7m-none-eabi under ${{ matrix.rust }}
37+
run: TARGET=thumbv7m-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
38+
- name: Run CI script for thumbv7em-none-eabi under ${{ matrix.rust }}
39+
run: TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
40+
- name: Run CI script for thumbv7em-none-eabihf under ${{ matrix.rust }}
41+
run: TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
42+
- name: Run CI script for thumbv8m.main-none-eabi under ${{ matrix.rust }}
43+
run: TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh

0 commit comments

Comments
 (0)