Skip to content

Commit

Permalink
Updated linux-ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmoth committed Oct 22, 2024
1 parent 1356e73 commit ed8c175
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed8c175

Please sign in to comment.