mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Merge two testing step into one in workflow rust
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
57d2b4c3b4
commit
68942f56e4
1 changed files with 4 additions and 6 deletions
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue