Skip to content

Commit

Permalink
rust.yml add job_cross_targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Nov 4, 2023
1 parent e5eb8e1 commit 49d2ca1
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,70 @@ jobs:
# chmod -v +x -- "${PROGRAM}" "${SCRIPT}"
# "${SCRIPT}"

job_cross_targets:
name: cross check ${{ matrix.target }}
needs: [job_rust_release_channel, job_rust_msrv_os]
strategy:
matrix:
target:
# from https://doc.rust-lang.org/nightly/rustc/platform-support.html
# listings should follow the same order
# Tier 1
- aarch64-unknown-linux-gnu
- i686-pc-windows-gnu
- i686-pc-windows-msvc
- i686-unknown-linux-gnu
- x86_64-apple-darwin
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-unknown-linux-gnu
# Tier 2 w host tools
- aarch64-apple-darwin
- aarch64-pc-windows-msvc
- aarch64-unknown-linux-musl
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- loongarch64-unknown-linux-gnu
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
- s390x-unknown-linux-gnu
- x86_64-unknown-freebsd
- x86_64-unknown-illumos
- x86_64-unknown-linux-musl
- x86_64-unknown-netbsd
# Tier 2 without host tools
# just a few chosen
- x86_64-sun-solaris
- wasm32-unknown-emscripten
- aarch64-apple-ios
- aarch64-linux-android
- wasm32-unknown-unknown
- wasm32-wasi
- x86_64-apple-ios
- x86_64-linux-android
# Tier 3
- i686-unknown-netbsd
- i686-unknown-openbsd
- x86_64-unknown-openbsd
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
name: toolchain ${{ env.MSRV_UPLOAD }} minimal
with:
profile: minimal
toolchain: ${{ env.MSRV_UPLOAD }}
- run: cargo install cross
- uses: Swatinem/rust-cache@v2
- run: |
set -eux
rustup target add ${{ matrix.target }}
cross --version
cross check --target ${{ matrix.target }}
job_check:
# this job downloads and builds dependency crates
name: check
Expand Down

0 comments on commit 49d2ca1

Please sign in to comment.