Skip to content

Commit dfec330

Browse files
committed
fix(workflow): enhance linux-musl arm64 job to build and install OpenSSL with musl-gcc
1 parent c6e1187 commit dfec330

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- os: ubuntu-24.04-arm
3232
arch: arm64
3333
name: linux-musl
34-
make: CC=musl-gcc
34+
make: CC=musl-gcc CURL_CONFIG="--with-openssl=/usr/local/musl"
3535
- os: macos-latest
3636
name: macos
3737
- os: windows-latest
@@ -84,7 +84,18 @@ jobs:
8484

8585
- name: linux-musl arm64 install dependencies
8686
if: matrix.name == 'linux-musl' && matrix.arch == 'arm64'
87-
run: sudo apt-get update && sudo apt-get install -y gcc make curl sqlite3 libssl-dev musl-dev musl-tools linux-headers-generic
87+
run: |
88+
sudo apt-get update
89+
sudo apt-get install -y gcc make curl sqlite3 musl-dev musl-tools linux-headers-generic
90+
91+
# Build OpenSSL for musl
92+
wget https://www.openssl.org/source/openssl-3.0.15.tar.gz
93+
tar -xzf openssl-3.0.15.tar.gz
94+
cd openssl-3.0.15
95+
CC=musl-gcc ./Configure linux-aarch64 --prefix=/usr/local/musl --openssldir=/usr/local/musl/ssl no-shared
96+
make -j$(nproc)
97+
sudo make install
98+
cd ..
8899
89100
- name: windows build curl
90101
if: matrix.os == 'windows-latest'

0 commit comments

Comments
 (0)