Skip to content

Commit

Permalink
add pkg-config to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Dec 1, 2024
1 parent 8c1995c commit 35828e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ jobs:
- name: Install SSL
if: contains(matrix.TARGET, 'linux')
run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev pkg-config


- name: Set PKG_CONFIG_PATH
if: contains(matrix.TARGET, 'linux')
run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> $GITHUB_ENV

# For linux, it's necessary to use cross from the git repository to avoid glibc problems
# Ref: https://github.com/cross-rs/cross/issues/1510
Expand All @@ -169,6 +174,7 @@ jobs:
- name: Build
run: |
export OPENSSL_DIR=/usr
cross build --verbose --release --target=${{ matrix.TARGET }}
- name: Rename
Expand Down

0 comments on commit 35828e4

Please sign in to comment.