Skip to content

Commit ee697ed

Browse files
authored
Enable cross-compilation in pkg-config for aarch64
1 parent a15972c commit ee697ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,15 @@ jobs:
4545
libgstrtspserver-1.0-dev \
4646
libges-1.0-dev
4747
48-
- name: Install cross-compiler for aarch64
48+
- name: Install cross pkg-config and ARM64 dev libs
4949
if: matrix.target == 'aarch64-unknown-linux-gnu'
5050
run: |
5151
sudo apt-get update
52-
sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
52+
sudo apt-get install -y \
53+
gcc-aarch64-linux-gnu \
54+
libc6-dev-arm64-cross \
55+
pkg-config-aarch64-linux-gnu
56+
echo "PKG_CONFIG=aarch64-linux-gnu-pkg-config" >> $GITHUB_ENV
5357
5458
- name: Add target if needed
5559
run: rustup target add ${{ matrix.target }}

0 commit comments

Comments
 (0)