Skip to content

Commit

Permalink
add complete ARM64 cross-compilation toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
k0gen committed Feb 10, 2025
1 parent 6f014ca commit 0b2acf1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@ jobs:
- target: x86_64-apple-darwin
os: macos-latest
rust_target: x86_64-apple-darwin
MACOSX_DEPLOYMENT_TARGET: "10.7"
- target: aarch64-apple-darwin
os: macos-latest
rust_target: aarch64-apple-darwin
MACOSX_DEPLOYMENT_TARGET: "11.0"
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
rust_target: x86_64-unknown-linux-gnu
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
rust_target: aarch64-unknown-linux-gnu
packages: gcc-aarch64-linux-gnu
packages: gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu

steps:
- name: Checkout start-os
Expand Down Expand Up @@ -61,10 +59,8 @@ jobs:
working-directory: ./start-os
env:
ARCH: ${{ matrix.rust_target }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.MACOSX_DEPLOYMENT_TARGET }}
CARGO_BUILD_TARGET: ${{ matrix.rust_target }}
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
run: |
rustup target add ${{ matrix.rust_target }}
make cli
mkdir -p ../artifacts
cp ~/.cargo/bin/start-cli ../artifacts/start-cli-${{ matrix.target }}
Expand Down

0 comments on commit 0b2acf1

Please sign in to comment.