Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Jun 18, 2024
1 parent debf172 commit e191b5d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e191b5d

Please sign in to comment.