diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index 81f7609..064c08b 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -93,17 +93,27 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev pkg-config - name: Set up Rust uses: actions-rs/toolchain@v1 with: toolchain: stable override: true - target: aarch64-unknown-linux-gnu # Add ARM64 target + target: aarch64-unknown-linux-gnu components: clippy + - name: Set environment variables for OpenSSL + run: | + export PKG_CONFIG_ALLOW_CROSS=1 + export OPENSSL_DIR=$(dirname $(dirname $(readlink -f $(which openssl)))) + export PKG_CONFIG_SYSROOT_DIR="/usr/aarch64-linux-gnu" + export PKG_CONFIG_PATH="/usr/aarch64-linux-gnu/lib/pkgconfig" + - name: Build for Linux ARM run: | cargo build --release --target aarch64-unknown-linux-gnu