diff options
-rw-r--r-- | cortex-m-rt/.github/bors.toml | 2 | ||||
-rw-r--r-- | cortex-m-rt/.github/workflows/ci.yml | 41 |
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 |