mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix testing on Windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
fbcfe369da
commit
4297b13ed9
1 changed files with 9 additions and 3 deletions
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
|
@ -42,7 +42,7 @@ jobs:
|
|||
output: cargo-binstall.exe
|
||||
archive: zip
|
||||
use-cross: false
|
||||
test: true
|
||||
test: false
|
||||
- target: x86_64-unknown-linux-musl
|
||||
os: ubuntu-latest
|
||||
output: cargo-binstall
|
||||
|
@ -96,8 +96,8 @@ jobs:
|
|||
- name: Copy and rename utility
|
||||
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
||||
|
||||
- name: Test
|
||||
if: ${{ matrix.test }}
|
||||
- name: Test (Unix)
|
||||
if: ${{ matrix.test && matrix.os != 'windows-latest' }}
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
for bin in $bins; do ./${{ matrix.output }} binstall --no-confirm $bin; done
|
||||
|
@ -105,6 +105,12 @@ jobs:
|
|||
env:
|
||||
bins: cargo-deb cargo-llvm-cov cargo-binstall
|
||||
|
||||
- name: Test (Windows)
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
run: |
|
||||
./${{ matrix.output }} binstall --no-confirm cargo-binstall
|
||||
./${{ matrix.output }} binstall --manifest-path . --no-confirm cargo-binstall
|
||||
|
||||
- name: Create archive (tgz, linux)
|
||||
if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }}
|
||||
run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue