Skip to content

Commit

Permalink
Merge #290
Browse files Browse the repository at this point in the history
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 <jonasschievink@gmail.com>
  • Loading branch information
bors[bot] and jonas-schievink authored Aug 26, 2020
2 parents f4a85dc + 2b6c1ab commit 8a165d9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cortex-m-rt/.github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
41 changes: 39 additions & 2 deletions cortex-m-rt/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 8a165d9

Please # to comment.