Skip to content

Commit 1928e10

Browse files
Add Linux musl builds to CI (x64 and arm64) (#435)
Also some refactoring to the release CI: - update download/upload actions; v3 was removed https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ - tidy the rename script so it's manageable with more linux releases - make the job name more descriptive to help with debugging Fixes: #176
1 parent fd7b216 commit 1928e10

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
required: true
88
jobs:
99
build:
10-
name: Build the release for ${{ matrix.os.runner }}
10+
name: Build the release for ${{ matrix.os.runner }} (${{ matrix.os.exe }})
1111
runs-on: ${{ matrix.os.runner }}
1212
strategy:
1313
matrix:
@@ -18,9 +18,15 @@ jobs:
1818
- runner: ubuntu-latest
1919
exe: marksman-linux-x64
2020
task: publishTo RID=linux-x64
21+
- runner: ubuntu-latest
22+
exe: marksman-linux-musl-x64
23+
task: publishTo RID=linux-musl-x64
2124
- runner: ubuntu-latest
2225
exe: marksman-linux-arm64
2326
task: publishTo RID=linux-arm64
27+
- runner: ubuntu-latest
28+
exe: marksman-linux-musl-arm64
29+
task: publishTo RID=linux-musl-arm64
2430
- runner: macos-latest
2531
exe: marksman
2632
task: macosUniversalBinary
@@ -38,11 +44,12 @@ jobs:
3844
shell: python
3945
run: |
4046
import os
41-
if ("${{ matrix.os.exe }}" == "marksman-linux-x64" or
42-
"${{ matrix.os.exe }}" == "marksman-linux-arm64"):
47+
if ("${{ matrix.os.exe }}" != "marksman" and
48+
"${{ matrix.os.exe }}" != "marksman.exe"
49+
):
4350
os.rename("out/marksman", "out/${{ matrix.os.exe }}")
4451
- name: Upload the binary
45-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
4653
with:
4754
name: ${{ matrix.os.exe }}
4855
path: out/${{ matrix.os.exe }}
@@ -69,7 +76,7 @@ jobs:
6976
steps:
7077
- id: download
7178
name: Download the release binary
72-
uses: actions/download-artifact@v3
79+
uses: actions/download-artifact@v4
7380
with:
7481
name: ${{ matrix.os.exe }}
7582
- name: Rename the binary

0 commit comments

Comments
 (0)