From 8a212b3f46b10499ed8d0dd3faa0ef8e4c56daa6 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Dec 2020 19:40:55 +1300 Subject: [PATCH] fix enable cross setting --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 917665ce..ac56a9aa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -59,16 +59,16 @@ jobs: target - name: Install openssl (apt armv7) - if: ${{ matrix.os == 'ubuntu-20.04' && matrix.target == 'armv7-unknown-linux-gnueabihf' }} + if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} uses: ryankurte/action-apt@v0.3.0 with: arch: armhf packages: libssl-dev:armhf libssl1.1:armhf zlib1g-dev:armhf zlib1g:armhf libc-dev:armhf - name: Enable cross compilation - if: ${{ matrix.os == 'ubuntu-20.04' && matrix.target == 'armv7-unknown-linux-gnueabihf' }} + if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} run: | - echo "PKG_CONFIG_ALLOW_CROSS=1" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append + echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV - name: Install openssl (vcpkg) if: ${{ matrix.os == 'windows-latest' }}