Skip to content

Commit

Permalink
modified ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YinMo19 authored and YinMo19 committed Nov 28, 2024
1 parent c989f68 commit 35019e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ jobs:

- name: Strip binary (linux and macos)
if: matrix.build == 'linux' || matrix.build == 'macos'
run: strip "target/${{ matrix.target }}/release/chatroom"
run: strip "target/${{ matrix.target }}/debug/chatroom"

- name: Build archive
shell: bash
run: |
mkdir archive
cd archive
if [ "${{ matrix.build }}" = "windows" ]; then
cp "../target/${{ matrix.target }}/release/chatroom.exe" ./
cp "../target/${{ matrix.target }}/debug/chatroom.exe" ./
7z a "${{ matrix.archive-name }}" chatroom.exe
else
cp "../target/${{ matrix.target }}/release/chatroom" ./
cp "../target/${{ matrix.target }}/debug/chatroom" ./
tar -czf "${{ matrix.archive-name }}" chatroom
fi
- name: Upload archive
Expand Down

0 comments on commit 35019e3

Please sign in to comment.