From f1bdee210a050ddf7dac9e60039f497bcb472ee2 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Wed, 30 Jun 2021 10:24:21 +0200 Subject: [PATCH 1/3] add cross testing on rust tier 1 and tier 2 with host tools --- .github/workflows/cross.yml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/cross.yml diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml new file mode 100644 index 0000000..5694b57 --- /dev/null +++ b/.github/workflows/cross.yml @@ -0,0 +1,57 @@ +on: [push, pull_request] + +name: Cross testing + +jobs: + + Cross: + name: Cross + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: + ############ Tier 1 + - aarch64-unknown-linux-gnu + # - i686-pc-windows-gnu # not supported by cross + # - i686-pc-windows-msvc # not supported by cross + - i686-unknown-linux-gnu + # - x86_64-apple-darwin # proprietary apple stuff + - x86_64-pc-windows-gnu + # - x86_64-pc-windows-msvc # not supported by cross + - x86_64-unknown-linux-gnu + ############ Tier 2 with Host Tools + # - aarch64-apple-darwin # proprietary apple stuff + # - aarch64-pc-windows-msvc # not supported by cross + - aarch64-unknown-linux-musl + - arm-unknown-linux-gnueabi + - arm-unknown-linux-gnueabihf + - armv7-unknown-linux-gnueabihf + - mips-unknown-linux-gnu + - mips64-unknown-linux-gnuabi64 + - mips64el-unknown-linux-gnuabi64 + - mipsel-unknown-linux-gnu + - powerpc-unknown-linux-gnu + # - powerpc64-unknown-linux-gnu # not supported by cross + - powerpc64le-unknown-linux-gnu + - riscv64gc-unknown-linux-gnu + - s390x-unknown-linux-gnu + # - x86_64-unknown-freebsd # not supported by cross + - x86_64-unknown-illumos + - x86_64-unknown-linux-musl + - x86_64-unknown-netbsd + steps: + - name: Checkout Crate + uses: actions/checkout@v2 + - name: Checkout Toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Install target + run: rustup target add ${{ matrix.arch }} + - name: install cross + run: cargo install cross + - name: run cross test + run: cross test --target ${{ matrix.arch }} From a426456bfac3b87081a1c26d459985ff5a34d986 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Sat, 11 Sep 2021 13:43:29 +0200 Subject: [PATCH 2/3] [CI] add cache --- .github/workflows/cross.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 5694b57..571223c 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -43,6 +43,9 @@ jobs: steps: - name: Checkout Crate uses: actions/checkout@v2 + - uses: Swatinem/rust-cache@v1.2.0 + with: + key: ${{ matrix.feature }}${{ matrix.os }} - name: Checkout Toolchain uses: actions-rs/toolchain@v1 with: From 801c3789c41368935a5ee8eff1def4bb5372ad99 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 28 Oct 2021 12:04:05 +0200 Subject: [PATCH 3/3] disable illumos and netbsd --- .github/workflows/cross.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 571223c..10672b8 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -37,9 +37,9 @@ jobs: - riscv64gc-unknown-linux-gnu - s390x-unknown-linux-gnu # - x86_64-unknown-freebsd # not supported by cross - - x86_64-unknown-illumos + # - x86_64-unknown-illumos # not supported by cross - x86_64-unknown-linux-musl - - x86_64-unknown-netbsd + # - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now steps: - name: Checkout Crate uses: actions/checkout@v2