Skip to content

Commit d93abf6

Browse files
committed
Try to fix OpenSSL on Linux
1 parent fc219bd commit d93abf6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
if: ${{ matrix.platform.target == 'x86_64-unknown-linux-musl' }}
3434
run: |
3535
sudo apt-get update
36-
sudo apt-get install -y musl-tools musl-dev libssl-dev pkg-config
36+
sudo apt-get install -y musl-tools musl-dev pkg-config
37+
# Try to find and install musl OpenSSL packages
38+
sudo apt-get install -y libssl-dev openssl-dev || true
3739
cargo install cross
3840
3941
- name: Compile
@@ -42,6 +44,10 @@ jobs:
4244
target: ${{ matrix.platform.target }}
4345
args: "--bin penumbra --release"
4446
force-use-cross: ${{ matrix.platform.target == 'x86_64-unknown-linux-musl' }}
47+
env:
48+
OPENSSL_DIR: /usr
49+
OPENSSL_LIB_DIR: /usr/lib/x86_64-linux-gnu
50+
OPENSSL_INCLUDE_DIR: /usr/include/openssl
4551

4652
- name: Upload
4753
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)