From e191b5dcdea2613ca6209e24feac80c6abbd493a Mon Sep 17 00:00:00 2001 From: Thomas Forbes Date: Tue, 18 Jun 2024 16:22:55 +0100 Subject: [PATCH] Try this --- .github/workflows/release.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 81bfeb7..4eb7fc6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,13 +38,15 @@ jobs: RUSTC_WRAPPER: "sccache" - run: cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.bin }} - - run: | - if [[ "${{ matrix.os }}" == "windows-latest" ]] - then - 7z a ${{ matrix.target}}.${{ matrix.suffix }} ${{ matrix.bin }} - else - tar czvf ${{ matrix.target}}.${{ matrix.suffix }} ${{ matrix.bin }} - fi + + - if: matrix.os == 'windows-latest' + run: | + 7z a "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }} + + - if: matrix.os != 'windows-latest' + run: | + tar czvf "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }} + - name: Upload build artifacts uses: actions/upload-artifact@v4 with: