Skip to content

Commit 10c9c8c

Browse files
authored
ci: release linux gnu target binary libs (#359)
1 parent c1fcf2d commit 10c9c8c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release-lib.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
include:
3737
- os: ubuntu-22.04
3838
target: x86_64-unknown-linux-musl
39+
- os: ubuntu-22.04
40+
target: x86_64-unknown-linux-gnu
3941
- os: ubuntu-22.04-arm
4042
target: aarch64-unknown-linux-musl
43+
- os: ubuntu-22.04-arm
44+
target: aarch64-unknown-linux-gnu
4145
- os: macos-latest
4246
target: x86_64-apple-darwin
4347
- os: macos-latest
@@ -67,7 +71,7 @@ jobs:
6771
shared-key: ${{ matrix.target }}
6872

6973
- name: prep for musl
70-
if: runner.os == 'Linux'
74+
if: endsWith(matrix.target, '-musl')
7175
run: |
7276
sudo apt-get update
7377
sudo apt-get install -y musl-tools
@@ -146,7 +150,7 @@ jobs:
146150
if [[ "${{ runner.os }}" == "Windows" ]]; then
147151
echo "LIB_TARGET=x86_64-pc-windows-gnu" >>"$GITHUB_ENV"
148152
elif [[ "${{ runner.os }}" == "Linux" ]]; then
149-
echo "LIB_TARGET=$(uname -m)-unknown-linux-musl" >>"$GITHUB_ENV"
153+
echo "LIB_TARGET=$(uname -m)-unknown-linux-gnu" >>"$GITHUB_ENV"
150154
else
151155
echo "LIB_TARGET=$(rustc -vV | grep host | cut -d' ' -f2)" >>"$GITHUB_ENV"
152156
fi

0 commit comments

Comments
 (0)