Skip to content

Commit

Permalink
check SSL paths
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Dec 1, 2024
1 parent 996c545 commit 17fe9e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ jobs:
if: contains(matrix.TARGET, 'linux')
run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev pkg-config

- name: Check OpenSSL pkg-config file
run: |
ls -l /usr/lib/${{ matrix.TARGET }}/pkgconfig/openssl.pc || echo "No openssl.pc found"
pkg-config --libs --cflags openssl || echo "pkg-config failed to find OpenSSL"
- name: Set PKG_CONFIG_PATH
if: contains(matrix.TARGET, 'linux')
run: echo "PKG_CONFIG_PATH=/usr/lib/${{ matrix.TARGET }}/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig" >> $GITHUB_ENV
Expand All @@ -174,6 +179,8 @@ jobs:
- name: Build
run: |
export OPENSSL_DIR=/usr
export OPENSSL_LIB_DIR=/usr/lib/${{ matrix.TARGET }}
export OPENSSL_INCLUDE_DIR=/usr/include/openssl
cross build --verbose --release --target=${{ matrix.TARGET }}
- name: Rename
Expand Down

0 comments on commit 17fe9e8

Please sign in to comment.