Merge two testing step into one in workflow rust

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-10 17:08:54 +10:00
parent 57d2b4c3b4
commit 68942f56e4
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -96,16 +96,14 @@ jobs:
- name: Copy and rename utility - name: Copy and rename utility
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }} run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
- name: Test installing bins - name: Test
if: ${{ matrix.test == 'true' }} 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: env:
bins: cargo-bindgen cbindgen cargo-deb cargo-llvm-cov cargo-binstall 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) - name: Create archive (tgz, linux)
if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }}
run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }} run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}