From 612d19d0fb3e17157130b71a8f03f9edf4865095 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 8 Apr 2021 20:49:44 +1200 Subject: [PATCH] fix windows artefact type for testing --- .github/workflows/rust.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 034d3a13..006f8be5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -118,12 +118,15 @@ jobs: - target: x86_64-unknown-linux-gnu os: ubuntu-latest output: cargo-binstall + archive: tgz - target: x86_64-apple-darwin os: macos-latest output: cargo-binstall + archive: tgz - target: x86_64-pc-windows-msvc os: windows-latest output: cargo-binstall.exe + archive: zip steps: - uses: actions/checkout@v2 @@ -131,10 +134,15 @@ jobs: - uses: actions/download-artifact@v2 with: - name: cargo-binstall-${{ matrix.target }}.tgz + name: cargo-binstall-${{ matrix.target }}.${{ matrix.archive }} - - name: "Extract build artifact" + - name: "Extract build artifact (tgz)" + if: ${{ matrix.target != 'x86_64-pc-windows-msvc' }} run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz + - name: "Extract build artifact (zip)" + if: ${{ matrix.target == 'x86_64-pc-windows-msvc' }} + run: tar.exe -xvf cargo-binstall-${{ matrix.target }}.zip + - name: "Run binstall" run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm