From 57d2b4c3b4d5a2960b0545e0402673c104fdd2b3 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Fri, 10 Jun 2022 17:07:59 +1000 Subject: [PATCH] Run job "Test binstall" only natively Signed-off-by: Jiahao XU --- .github/workflows/rust.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index be604263..f31346a8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,36 +24,43 @@ jobs: output: cargo-binstall archive: tgz use-cross: false + test: true - target: x86_64-apple-darwin os: macos-latest output: cargo-binstall archive: zip use-cross: false + test: true - target: aarch64-apple-darwin os: macos-latest output: cargo-binstall archive: zip use-cross: false + test: false - target: x86_64-pc-windows-msvc os: windows-latest output: cargo-binstall.exe archive: zip use-cross: false + test: true - target: x86_64-unknown-linux-musl os: ubuntu-latest output: cargo-binstall archive: tgz use-cross: false + test: true - target: armv7-unknown-linux-musleabihf os: ubuntu-20.04 output: cargo-binstall archive: tgz use-cross: true + test: false - target: aarch64-unknown-linux-musl os: ubuntu-latest output: cargo-binstall archive: tgz use-cross: true + test: false steps: - uses: actions/checkout@v2 @@ -90,11 +97,13 @@ jobs: run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }} - name: Test installing bins + if: ${{ matrix.test == 'true' }} run: for bin in $bins; do ./${{ matrix.output }} cargo-binstall --no-confirm $bin; done env: bins: cargo-bindgen cbindgen cargo-deb cargo-llvm-cov cargo-binstall - name: Test binstall with manifest + if: ${{ matrix.test == 'true' }} run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm - name: Create archive (tgz, linux)