Skip to content

Commit 62d127d

Browse files
committed
try to fix the github action (3)
1 parent 2c30f6c commit 62d127d

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/build.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on:
33

44
jobs:
55
release:
6-
name: Release - ${{ matrix.platform.os_name }}
7-
if: startsWith( github.ref, 'refs/tags/v' ) || github.ref == 'refs/tags/test-release'
6+
name: Release - ${{ matrix.platform.target }}
7+
if: startsWith( github.ref, 'refs/tags/v' )
88
strategy:
99
matrix:
1010
platform:
@@ -29,11 +29,18 @@ jobs:
2929
# name: server-Darwin-x86_64.tar.gz
3030
# command: both
3131

32-
- release_for: Linux-x86_64
33-
os: windows-latest
32+
- release_for: Linux-x86_64 MUSL
33+
os: ubuntu-20.04
3434
target: x86_64-unknown-linux-musl
35-
bin: server.exe
36-
name: server-linux-x86_64.zip
35+
bin: server
36+
name: server-linux-x86_64-musl.zip
37+
command: both
38+
39+
- release_for: Linux-x86_64 GNU
40+
os: ubuntu-20.04
41+
target: x86_64-unknown-linux-gnu
42+
bin: server
43+
name: server-linux-x86_64-gnu.zip
3744
command: both
3845

3946

@@ -51,7 +58,7 @@ jobs:
5158
- name: Publish release artifacts
5259
uses: actions/upload-artifact@v3
5360
with:
54-
name: server-${{ matrix.platform.os_name }}
61+
name: ${{ matrix.platform.name }}
5562
path: "server*"
5663
if: github.ref == 'refs/tags/test-release'
5764
- name: Publish GitHub release

0 commit comments

Comments
 (0)