From 68942f56e48ca59e4234745d2095c773f4fd777d Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Fri, 10 Jun 2022 17:08:54 +1000 Subject: [PATCH] Merge two testing step into one in workflow `rust` Signed-off-by: Jiahao XU --- .github/workflows/rust.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f31346a8..246485ff 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -96,16 +96,14 @@ jobs: - name: Copy and rename utility run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }} - - name: Test installing bins + - name: Test if: ${{ matrix.test == 'true' }} - run: for bin in $bins; do ./${{ matrix.output }} cargo-binstall --no-confirm $bin; done + run: | + for bin in $bins; do ./${{ matrix.output }} cargo-binstall --no-confirm $bin; done + ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm 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) if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}