Skip to content

Commit ed1a7eb

Browse files
committed
fix(release): resolve OpenSSL build issues for musl target
- Add OPENSSL_STATIC=1 and OPENSSL_VENDORED=1 environment variables for musl builds - This enables static linking and vendored OpenSSL compilation for x86_64-unknown-linux-musl - Install musl-dev package for additional development headers - Fixes release workflow failure with OpenSSL compilation errors This resolves the error: 'Could not find directory of OpenSSL installation' when building for musl targets in GitHub Actions release workflow.
1 parent d289b6c commit ed1a7eb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,20 @@ jobs:
165165

166166
- name: Install musl tools
167167
if: matrix.target == 'x86_64-unknown-linux-musl'
168-
run: sudo apt-get install -y musl-tools
168+
run: |
169+
sudo apt-get update
170+
sudo apt-get install -y musl-tools musl-dev
169171
170172
- name: Build CodePrism Binary
173+
env:
174+
OPENSSL_STATIC: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '' }}
175+
OPENSSL_VENDORED: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '' }}
171176
run: cargo build --release --target ${{ matrix.target }} --bin codeprism
172177

173178
- name: Build Moth Test Harness Binary
179+
env:
180+
OPENSSL_STATIC: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '' }}
181+
OPENSSL_VENDORED: ${{ matrix.target == 'x86_64-unknown-linux-musl' && '1' || '' }}
174182
run: cargo build --release --target ${{ matrix.target }} --bin moth
175183

176184
- name: Prepare Binaries (Unix)

0 commit comments

Comments
 (0)