From 01ff14c0a9e9dc6bd52e22f531ab679329a2fa9a Mon Sep 17 00:00:00 2001 From: Gulshan Yadav Date: Mon, 2 Feb 2026 03:48:26 +0530 Subject: [PATCH] fix: use native ARM64 runner instead of cross-compilation - Use ubuntu-24.04-arm runner for native ARM64 builds - Remove cross-compilation setup (OpenSSL issues in Docker) - Native builds are more reliable and faster --- .github/workflows/release.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1808d58..d8718aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,11 +24,10 @@ jobs: target: x86_64-unknown-linux-gnu artifact-name: synor-linux-x86_64 archive-ext: tar.gz - - os: ubuntu-latest + - os: ubuntu-24.04-arm target: aarch64-unknown-linux-gnu artifact-name: synor-linux-aarch64 archive-ext: tar.gz - cross: true - os: macos-latest target: x86_64-apple-darwin artifact-name: synor-macos-x86_64 @@ -53,12 +52,8 @@ jobs: with: targets: ${{ matrix.target }} - - name: Install cross tool - if: matrix.cross - run: cargo install cross --git https://github.com/cross-rs/cross - - name: Install system dependencies (Linux) - if: runner.os == 'Linux' && !matrix.cross + if: runner.os == 'Linux' run: | sudo apt-get update sudo apt-get install -y libclang-dev llvm-dev @@ -83,14 +78,8 @@ jobs: restore-keys: | ${{ runner.os }}-${{ matrix.target }}-cargo-target-release- - - name: Build release binaries (Unix with cross) - if: runner.os != 'Windows' && matrix.cross - env: - TARGET: ${{ matrix.target }} - run: cross build --release --workspace --target "$TARGET" - - - name: Build release binaries (Unix native) - if: runner.os != 'Windows' && !matrix.cross + - name: Build release binaries (Unix) + if: runner.os != 'Windows' env: TARGET: ${{ matrix.target }} run: cargo build --release --workspace --target "$TARGET"