Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add arm64 builds #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/notes.md
Original file line number Diff line number Diff line change
@@ -25,3 +25,26 @@ ${NVIM_VERSION}
1. Download **nvim-linux-x86_64.deb**
2. Install the package using `sudo apt install ./nvim-linux-x86_64.deb`
3. Run `nvim`

### Linux (arm64)
#### AppImage

1. Download **nvim-linux-arm64.appimage**
2. Run `chmod u+x nvim-linux-arm64.appimage && ./nvim-linux-arm64.appimage`
- If your system does not have FUSE you can [extract the appimage](https://github.com/AppImage/AppImageKit/wiki/FUSE#type-2-appimage):
```
./nvim-linux-arm64.appimage --appimage-extract
./squashfs-root/usr/bin/nvim
```

#### Tarball

1. Download **nvim-linux-arm64.tar.gz**
2. Extract: `tar xzvf nvim-linux-arm64.tar.gz`
3. Run `./nvim-linux-arm64/bin/nvim`

4. #### Debian Package

1. Download **nvim-linux-arm64.deb**
2. Install the package using `sudo apt install ./nvim-linux-x86_64.deb`
3. Run `nvim`
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,17 @@ env:
# Build with zig cc so we can target glibc 2.17, so we have broader compatibility
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
runner: [ ubuntu-22.04, ubuntu-22.04-arm ]
include:
- runner: ubuntu-22.04
arch: x86_64
- runner: ubuntu-22.04-arm
arch: arm64

runs-on: ${{ matrix.runner }}
outputs:
version: ${{ steps.build.outputs.version }}
env:
@@ -79,18 +89,18 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: appimage
name: nvim-appimage-${{ matrix.arch }}
path: |
build/bin/nvim-linux-x86_64.appimage
build/bin/nvim-linux-x86_64.appimage.zsync
build/bin/nvim-linux-${{ matrix.arch }}.appimage
build/bin/nvim-linux-${{ matrix.arch }}.appimage.zsync
retention-days: 1

- uses: actions/upload-artifact@v4
with:
name: nvim-linux64
name: nvim-linux-${{ matrix.arch }}
path: |
build/nvim-linux-x86_64.tar.gz
build/nvim-linux-x86_64.deb
build/nvim-linux-${{ matrix.arch }}.tar.gz
build/nvim-linux-${{ matrix.arch }}.deb
retention-days: 1

- name: Export version
@@ -152,12 +162,12 @@ jobs:
--notes-file "$RUNNER_TEMP/notes.md" \
--title "$SUBJECT" \
--target $GITHUB_SHA \
nvim-linux64/* appimage/*
nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/*
fi

gh release delete $TAG_NAME --yes || true
gh release create $TAG_NAME $PRERELEASE \
--notes-file "$RUNNER_TEMP/notes.md" \
--title "$SUBJECT" \
--target $GITHUB_SHA \
nvim-linux64/* appimage/*
nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/*