Skip to content

Commit e191b5d

Browse files
committed
Try this
1 parent debf172 commit e191b5d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ jobs:
3838
RUSTC_WRAPPER: "sccache"
3939

4040
- run: cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.bin }}
41-
- run: |
42-
if [[ "${{ matrix.os }}" == "windows-latest" ]]
43-
then
44-
7z a ${{ matrix.target}}.${{ matrix.suffix }} ${{ matrix.bin }}
45-
else
46-
tar czvf ${{ matrix.target}}.${{ matrix.suffix }} ${{ matrix.bin }}
47-
fi
41+
42+
- if: matrix.os == 'windows-latest'
43+
run: |
44+
7z a "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }}
45+
46+
- if: matrix.os != 'windows-latest'
47+
run: |
48+
tar czvf "${{ matrix.target}}.${{ matrix.suffix }}" ${{ matrix.bin }}
49+
4850
- name: Upload build artifacts
4951
uses: actions/upload-artifact@v4
5052
with:

0 commit comments

Comments
 (0)