Skip to content

Commit 92756c9

Browse files
rufodundargoc
authored andcommitted
feat: Add arm64 builds
1 parent f4bdc53 commit 92756c9

2 files changed

Lines changed: 42 additions & 9 deletions

File tree

.github/workflows/notes.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,26 @@ ${NVIM_VERSION}
2525
1. Download **nvim-linux-x86_64.deb**
2626
2. Install the package using `sudo apt install ./nvim-linux-x86_64.deb`
2727
3. Run `nvim`
28+
29+
### Linux (arm64)
30+
#### AppImage
31+
32+
1. Download **nvim-linux-arm64.appimage**
33+
2. Run `chmod u+x nvim-linux-arm64.appimage && ./nvim-linux-arm64.appimage`
34+
- If your system does not have FUSE you can [extract the appimage](https://github.com/AppImage/AppImageKit/wiki/FUSE#type-2-appimage):
35+
```
36+
./nvim-linux-arm64.appimage --appimage-extract
37+
./squashfs-root/usr/bin/nvim
38+
```
39+
40+
#### Tarball
41+
42+
1. Download **nvim-linux-arm64.tar.gz**
43+
2. Extract: `tar xzvf nvim-linux-arm64.tar.gz`
44+
3. Run `./nvim-linux-arm64/bin/nvim`
45+
46+
4. #### Debian Package
47+
48+
1. Download **nvim-linux-arm64.deb**
49+
2. Install the package using `sudo apt install ./nvim-linux-x86_64.deb`
50+
3. Run `nvim`

.github/workflows/release.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,17 @@ env:
2020
# Build with zig cc so we can target glibc 2.17, so we have broader compatibility
2121
jobs:
2222
linux:
23-
runs-on: ubuntu-latest
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
runner: [ ubuntu-22.04, ubuntu-22.04-arm ]
27+
include:
28+
- runner: ubuntu-22.04
29+
arch: x86_64
30+
- runner: ubuntu-22.04-arm
31+
arch: arm64
32+
33+
runs-on: ${{ matrix.runner }}
2434
outputs:
2535
version: ${{ steps.build.outputs.version }}
2636
env:
@@ -79,18 +89,18 @@ jobs:
7989

8090
- uses: actions/upload-artifact@v6
8191
with:
82-
name: appimage
92+
name: nvim-appimage-${{ matrix.arch }}
8393
path: |
84-
build/bin/nvim-linux-x86_64.appimage
85-
build/bin/nvim-linux-x86_64.appimage.zsync
94+
build/bin/nvim-linux-${{ matrix.arch }}.appimage
95+
build/bin/nvim-linux-${{ matrix.arch }}.appimage.zsync
8696
retention-days: 1
8797

8898
- uses: actions/upload-artifact@v6
8999
with:
90-
name: nvim-linux64
100+
name: nvim-linux-${{ matrix.arch }}
91101
path: |
92-
build/nvim-linux-x86_64.tar.gz
93-
build/nvim-linux-x86_64.deb
102+
build/nvim-linux-${{ matrix.arch }}.tar.gz
103+
build/nvim-linux-${{ matrix.arch }}.deb
94104
retention-days: 1
95105

96106
- name: Export version
@@ -152,12 +162,12 @@ jobs:
152162
--notes-file "$RUNNER_TEMP/notes.md" \
153163
--title "$SUBJECT" \
154164
--target $GITHUB_SHA \
155-
nvim-linux64/* appimage/*
165+
nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/*
156166
fi
157167
158168
gh release delete $TAG_NAME --yes || true
159169
gh release create $TAG_NAME $PRERELEASE \
160170
--notes-file "$RUNNER_TEMP/notes.md" \
161171
--title "$SUBJECT" \
162172
--target $GITHUB_SHA \
163-
nvim-linux64/* appimage/*
173+
nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/*

0 commit comments

Comments
 (0)