|
| 1 | +on: [push, pull_request] |
| 2 | + |
| 3 | +name: Cross testing |
| 4 | + |
| 5 | +jobs: |
| 6 | + |
| 7 | + Cross: |
| 8 | + name: Cross |
| 9 | + runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + arch: |
| 14 | + ############ Tier 1 |
| 15 | + - aarch64-unknown-linux-gnu |
| 16 | + # - i686-pc-windows-gnu # not supported by cross |
| 17 | + # - i686-pc-windows-msvc # not supported by cross |
| 18 | + - i686-unknown-linux-gnu |
| 19 | + # - x86_64-apple-darwin # proprietary apple stuff |
| 20 | + - x86_64-pc-windows-gnu |
| 21 | + # - x86_64-pc-windows-msvc # not supported by cross |
| 22 | + - x86_64-unknown-linux-gnu |
| 23 | + ############ Tier 2 with Host Tools |
| 24 | + # - aarch64-apple-darwin # proprietary apple stuff |
| 25 | + # - aarch64-pc-windows-msvc # not supported by cross |
| 26 | + - aarch64-unknown-linux-musl |
| 27 | + - arm-unknown-linux-gnueabi |
| 28 | + - arm-unknown-linux-gnueabihf |
| 29 | + - armv7-unknown-linux-gnueabihf |
| 30 | + - mips-unknown-linux-gnu |
| 31 | + - mips64-unknown-linux-gnuabi64 |
| 32 | + - mips64el-unknown-linux-gnuabi64 |
| 33 | + - mipsel-unknown-linux-gnu |
| 34 | + - powerpc-unknown-linux-gnu |
| 35 | + # - powerpc64-unknown-linux-gnu # not supported by cross |
| 36 | + - powerpc64le-unknown-linux-gnu |
| 37 | + - riscv64gc-unknown-linux-gnu |
| 38 | + - s390x-unknown-linux-gnu |
| 39 | + # - x86_64-unknown-freebsd # not supported by cross |
| 40 | + # - x86_64-unknown-illumos # not supported by cross |
| 41 | + - x86_64-unknown-linux-musl |
| 42 | + # - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now |
| 43 | + steps: |
| 44 | + - name: Checkout Crate |
| 45 | + uses: actions/checkout@v2 |
| 46 | + - uses: Swatinem/rust-cache@v1.2.0 |
| 47 | + with: |
| 48 | + key: ${{ matrix.feature }}${{ matrix.os }} |
| 49 | + - name: Checkout Toolchain |
| 50 | + uses: actions-rs/toolchain@v1 |
| 51 | + with: |
| 52 | + profile: minimal |
| 53 | + toolchain: stable |
| 54 | + override: true |
| 55 | + - name: Install target |
| 56 | + run: rustup target add ${{ matrix.arch }} |
| 57 | + - name: install cross |
| 58 | + run: cargo install cross |
| 59 | + - name: run cross test |
| 60 | + run: cross test --target ${{ matrix.arch }} |
0 commit comments