Skip to content

Commit

Permalink
add aarch64 build (#599)
Browse files Browse the repository at this point in the history
Hi,

In asahi linux (aarch64), selene is not available in neovim because
mason can not download an artifact for it (there is no aarch64 linux on
github releases). To fix this, I added a cross compilation step to
generate and upload an aarch64 linux binary.

I tested this in my fork, and it correctly generates aarch64 binaries.

Please let me know if you like something changed!

Co-authored-by: boyned//Kampfkarren <[email protected]>
  • Loading branch information
joske and Kampfkarren authored Jun 28, 2024
1 parent 23411d5 commit 6e02c2f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ jobs:
with:
name: selene-linux
path: ./target/release/selene
- name: Build arm64 (Default features)
uses: actions-rs/cargo@v1
with:
working-directory: selene
use-cross: true
command: build
args: --locked --release --target aarch64-unknown-linux-gnu
- name: Upload selene arm64
uses: actions/upload-artifact@v1
with:
name: selene-linux-aarch64
path: ./target/aarch64-unknown-linux-gnu/release/selene
build_linux_light:
runs-on: ubuntu-latest
steps:
Expand All @@ -91,6 +103,18 @@ jobs:
with:
name: selene-light-linux
path: ./target/release/selene
- name: Build arm64 (Lightweight)
uses: actions-rs/cargo@v1
with:
working-directory: selene
use-cross: true
command: build
args: --locked --release --verbose --no-default-features --target aarch64-unknown-linux-gnu
- name: Upload selene-light arm64
uses: actions/upload-artifact@v1
with:
name: selene-light-linux-aarch64
path: ./target/aarch64-unknown-linux-gnu/release/selene
release:
runs-on: ubuntu-latest
needs: ['build_windows_light', 'build_windows', 'build_mac', 'build_mac_light', 'build_linux', 'build_linux_light']
Expand Down

0 comments on commit 6e02c2f

Please sign in to comment.