aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-08-26 22:59:06 +0000
committerGravatar GitHub <noreply@github.com> 2020-08-26 22:59:06 +0000
commit8a165d9a45cecd551b115dc52ed5b1bdc77f4af1 (patch)
tree10a0d1dd79eb6c852f1f52449d92ab7e24067d5e
parentf4a85dcc92e90e27588cbe14e0447b89f672e30f (diff)
parent2b6c1abb5aee31fa4cc642f4f31a52d281e30dbb (diff)
downloadcortex-m-8a165d9a45cecd551b115dc52ed5b1bdc77f4af1.tar.gz
cortex-m-8a165d9a45cecd551b115dc52ed5b1bdc77f4af1.tar.zst
cortex-m-8a165d9a45cecd551b115dc52ed5b1bdc77f4af1.zip
Merge #290
290: Beef up CI r=therealprof a=jonas-schievink Closes https://github.com/rust-embedded/cortex-m-rt/issues/233 Closes https://github.com/rust-embedded/cortex-m-rt/issues/80 Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
-rw-r--r--cortex-m-rt/.github/bors.toml2
-rw-r--r--cortex-m-rt/.github/workflows/ci.yml41
2 files changed, 41 insertions, 2 deletions
diff --git a/cortex-m-rt/.github/bors.toml b/cortex-m-rt/.github/bors.toml
index b4017af..9b9d884 100644
--- a/cortex-m-rt/.github/bors.toml
+++ b/cortex-m-rt/.github/bors.toml
@@ -4,5 +4,7 @@ required_approvals = 1
status = [
"ci-linux (stable)",
"ci-linux (1.39.0)",
+ "build-other (macOS-latest)",
+ "build-other (windows-latest)",
"Rustfmt"
]
diff --git a/cortex-m-rt/.github/workflows/ci.yml b/cortex-m-rt/.github/workflows/ci.yml
index 84e05f2..35abd15 100644
--- a/cortex-m-rt/.github/workflows/ci.yml
+++ b/cortex-m-rt/.github/workflows/ci.yml
@@ -25,8 +25,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- - name: Install all Rust targets for ${{ matrix.rust }}
- run: rustup target install --toolchain=${{ matrix.rust }} thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.main-none-eabi
+ - name: Install all Rust targets for ${{ matrix.rust }}
+ 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
- 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 ${{ matrix.rust }}
@@ -39,5 +39,42 @@ jobs:
run: TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
- name: Run CI script for thumbv7em-none-eabihf under ${{ matrix.rust }}
run: TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
+ - name: Run CI script for thumbv8m.base-none-eabi under ${{ matrix.rust }}
+ run: TARGET=thumbv8m.base-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
- name: Run CI script for thumbv8m.main-none-eabi under ${{ matrix.rust }}
run: TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
+ - name: Run CI script for thumbv8m.main-none-eabihf under ${{ matrix.rust }}
+ run: TARGET=thumbv8m.main-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
+
+ # On macOS and Windows, we at least make sure that all examples build and link.
+ build-other:
+ strategy:
+ matrix:
+ os:
+ - macOS-latest
+ - windows-latest
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - name: Install all Rust targets
+ 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
+ - name: Build crate for thumbv6m-none-eabi
+ run: cargo build --target=thumbv6m-none-eabi --examples
+ - name: Build crate for thumbv7m-none-eabi
+ run: cargo build --target=thumbv7m-none-eabi --examples
+ - name: Build crate for thumbv7em-none-eabi
+ run: cargo build --target=thumbv7em-none-eabi --examples
+ - name: Build crate for thumbv7em-none-eabihf
+ run: cargo build --target=thumbv7em-none-eabihf --examples
+ - name: Build crate for thumbv8m.base-none-eabi
+ run: cargo build --target=thumbv8m.base-none-eabi --examples
+ - name: Build crate for thumbv8m.main-none-eabi
+ run: cargo build --target=thumbv8m.main-none-eabi --examples
+ - name: Build crate for thumbv8m.main-none-eabihf
+ run: cargo build --target=thumbv8m.main-none-eabihf --examples