Skip to content

Commit 8a165d9

Browse files
Merge #290
290: Beef up CI r=therealprof a=jonas-schievink Closes rust-embedded/cortex-m-rt#233 Closes rust-embedded/cortex-m-rt#80 Co-authored-by: Jonas Schievink <[email protected]>
2 parents f4a85dc + 2b6c1ab commit 8a165d9

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ required_approvals = 1
44
status = [
55
"ci-linux (stable)",
66
"ci-linux (1.39.0)",
7+
"build-other (macOS-latest)",
8+
"build-other (windows-latest)",
79
"Rustfmt"
810
]

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

+39-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
profile: minimal
2626
toolchain: ${{ matrix.rust }}
2727
override: true
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
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.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
3030
- name: Install qemu and gcc
3131
run: sudo apt-get update && sudo apt-get install qemu-system-arm gcc-arm-none-eabi
3232
- name: Run CI script for x86_64-unknown-linux-gnu under ${{ matrix.rust }}
@@ -39,5 +39,42 @@ jobs:
3939
run: TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
4040
- name: Run CI script for thumbv7em-none-eabihf under ${{ matrix.rust }}
4141
run: TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
42+
- name: Run CI script for thumbv8m.base-none-eabi under ${{ matrix.rust }}
43+
run: TARGET=thumbv8m.base-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
4244
- name: Run CI script for thumbv8m.main-none-eabi under ${{ matrix.rust }}
4345
run: TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
46+
- name: Run CI script for thumbv8m.main-none-eabihf under ${{ matrix.rust }}
47+
run: TARGET=thumbv8m.main-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
48+
49+
# On macOS and Windows, we at least make sure that all examples build and link.
50+
build-other:
51+
strategy:
52+
matrix:
53+
os:
54+
- macOS-latest
55+
- windows-latest
56+
runs-on: ${{ matrix.os }}
57+
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: actions-rs/toolchain@v1
61+
with:
62+
profile: minimal
63+
toolchain: stable
64+
override: true
65+
- name: Install all Rust targets
66+
run: rustup target install thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
67+
- name: Build crate for thumbv6m-none-eabi
68+
run: cargo build --target=thumbv6m-none-eabi --examples
69+
- name: Build crate for thumbv7m-none-eabi
70+
run: cargo build --target=thumbv7m-none-eabi --examples
71+
- name: Build crate for thumbv7em-none-eabi
72+
run: cargo build --target=thumbv7em-none-eabi --examples
73+
- name: Build crate for thumbv7em-none-eabihf
74+
run: cargo build --target=thumbv7em-none-eabihf --examples
75+
- name: Build crate for thumbv8m.base-none-eabi
76+
run: cargo build --target=thumbv8m.base-none-eabi --examples
77+
- name: Build crate for thumbv8m.main-none-eabi
78+
run: cargo build --target=thumbv8m.main-none-eabi --examples
79+
- name: Build crate for thumbv8m.main-none-eabihf
80+
run: cargo build --target=thumbv8m.main-none-eabihf --examples

0 commit comments

Comments
 (0)