From ef90b8f318d7f990d8ed64fbb8d71cced6f264a5 Mon Sep 17 00:00:00 2001 From: Xabi Losada Date: Mon, 10 Jun 2024 12:34:21 +0200 Subject: [PATCH] fix: fix ubuntu 3 --- .github/workflows/desktop_artifacts.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/desktop_artifacts.yml b/.github/workflows/desktop_artifacts.yml index 364240780..17264c194 100644 --- a/.github/workflows/desktop_artifacts.yml +++ b/.github/workflows/desktop_artifacts.yml @@ -45,10 +45,10 @@ jobs: make -j$(nproc) make install_sw cd .. - export OPENSSL_DIR=$HOME/openssl-aarch64 - export PKG_CONFIG_PATH=$OPENSSL_DIR/lib/pkgconfig - export PKG_CONFIG_ALLOW_CROSS=1 - export PKG_CONFIG_SYSROOT_DIR=/ + echo "OPENSSL_DIR=$HOME/openssl-aarch64" >> $GITHUB_ENV + echo "PKG_CONFIG_PATH=$HOME/openssl-aarch64/lib/pkgconfig" >> $GITHUB_ENV + echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV + echo "PKG_CONFIG_SYSROOT_DIR=/" >> $GITHUB_ENV - name: Cache cargo registry uses: actions/cache@v3 @@ -69,7 +69,10 @@ jobs: - name: Build the crate for aarch64 if: matrix.target == 'aarch64-unknown-linux-gnu' env: - OPENSSL_DIR: $HOME/openssl-aarch64 + OPENSSL_DIR: ${{ env.OPENSSL_DIR }} + PKG_CONFIG_PATH: ${{ env.PKG_CONFIG_PATH }} + PKG_CONFIG_ALLOW_CROSS: ${{ env.PKG_CONFIG_ALLOW_CROSS }} + PKG_CONFIG_SYSROOT_DIR: ${{ env.PKG_CONFIG_SYSROOT_DIR }} run: cargo build -p calimero-node --release --target ${{ matrix.target }} - name: Build the crate for x86_64