From f16409cda960576bd350f4f0c61a4520b6218eea Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Dec 2020 19:17:23 +1300 Subject: [PATCH] separate pkg config step --- .github/workflows/rust.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d8365e53..2f089cc3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -77,8 +77,10 @@ jobs: sudo apt-get update # Install deps sudo apt-get install -y libssl-dev:armhf libssl1.1:armhf zlib1g-dev:armhf zlib1g:armhf libc-dev:armhf - # Allow cross compilation - echo "PKG_CONFIG_ALLOW_CROSS=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append + + - name: Enable cross compilation + if: ${{ matrix.os == 'ubuntu-20.04' && matrix.target == 'armv7-unknown-linux-gnueabihf' }} + run: echo "PKG_CONFIG_ALLOW_CROSS=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append - name: Install openssl (vcpkg) if: ${{ matrix.os == 'windows-latest' }}