ci: 🐛 Fix openssl for aarch64-linux

This commit is contained in:
Sergio Gasquez 2022-10-07 10:47:48 +02:00
parent 06f239bbcd
commit dcc7b28496

View File

@ -26,7 +26,6 @@ jobs:
binary-postfix: ".exe"
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
use-cross: true
binary-postfix: ""
- os: macos-latest
target: aarch64-apple-darwin
@ -39,10 +38,9 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu pkg-config libssl-dev
export OPENSSL_LIB_DIR="/usr/lib/x86_64-linux-gnu"
export OPENSSL_INCLUDE_DIR="/usr/include/openssl"
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
sudo apt-get upgrade
echo "OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/include/openssl" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
@ -55,7 +53,6 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
use-cross: ${{ matrix.job.use-cross }}
args: --release --target ${{ matrix.job.target }}
- name: Compress (Unix)
if: ${{ matrix.job.os != 'windows-latest' }}