From dd4407bbb67c0f7b8d6ce622f2d23e7fcf2e18ca Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Dec 2020 21:27:53 +1300 Subject: [PATCH] disable actions cache on macos, fix path error on windows --- .github/workflows/rust.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 782d4ad4..039eddc0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -50,6 +50,8 @@ jobs: - name: Configure caching uses: actions/cache@v2 + if: ${{ matrix.os != 'macos-latest' }} + # Caching disabled on macos due to https://github.com/actions/cache/issues/403 with: key: ${{ matrix.os }}-${{ matrix.target }} path: | @@ -77,8 +79,7 @@ jobs: uses: actions/cache@v2 with: key: ${{ matrix.os }}-${{ matrix.target }} - path: $VCPKG_DIRECTORY - + path: C:/vcpkg/installed - name: Build release uses: actions-rs/cargo@v1 @@ -88,14 +89,14 @@ jobs: - name: Copy / Rename utility run: | - cp target/${{ matrix.target }}/release/${{ matrix.output }} cargo-binstall-${{ matrix.target }} - tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}-${{ matrix.target }} + cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }} + tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }} - name: Upload artifacts uses: actions/upload-artifact@v1 with: - name: cargo-binstall-${{ matrix.target }} - path: cargo-binstall-${{ matrix.target }} + name: cargo-binstall-${{ matrix.target }}.tgz + path: cargo-binstall-${{ matrix.target }}.tgz - name: Upload binary to release if: ${{ startsWith(github.ref, 'refs/tags/v') }}