2020-12-01 21:32:04 -07:00
|
|
|
name: Nightly release
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '5 5 * * *'
|
2020-12-05 09:47:03 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
tag_name:
|
|
|
|
description: 'Tag name for release'
|
|
|
|
required: false
|
|
|
|
default: nightly
|
2020-12-01 21:32:04 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
outputs:
|
|
|
|
version: ${{ steps.build.outputs.version }}
|
|
|
|
release: ${{ steps.build.outputs.release }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2020-12-04 18:50:54 -07:00
|
|
|
sudo apt-get install -y autoconf automake build-essential cmake gcc-multilib gettext gperf libtool-bin locales ninja-build pkg-config unzip
|
2020-12-01 21:32:04 -07:00
|
|
|
- name: Build nightly
|
|
|
|
id: build
|
|
|
|
run: |
|
|
|
|
make CMAKE_BUILD_TYPE=RelWithDebinfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH="
|
|
|
|
printf '::set-output name=version::%s\n' "$(./build/bin/nvim --version | head -n 3 | sed -z 's/\n/%0A/g')"
|
|
|
|
printf '::set-output name=release::%s\n' "$(./build/bin/nvim --version | head -n 1 | sed 's/-.*//')"
|
|
|
|
make DESTDIR="$GITHUB_WORKSPACE/build/nightly/nvim-linux64" install
|
|
|
|
cd "$GITHUB_WORKSPACE/build/nightly"
|
|
|
|
tar cfz nvim-linux64.tar.gz nvim-linux64
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-12-05 06:52:50 -07:00
|
|
|
name: nvim-linux64
|
2020-12-01 21:32:04 -07:00
|
|
|
path: build/nightly/nvim-linux64.tar.gz
|
|
|
|
retention-days: 1
|
|
|
|
|
2020-12-04 18:55:31 -07:00
|
|
|
appimage:
|
|
|
|
# Build on the oldest supported image, so we have broader compatibility
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y autoconf automake build-essential cmake gcc-multilib gettext gperf libtool-bin locales ninja-build pkg-config unzip
|
|
|
|
- name: Build appimage
|
|
|
|
run: |
|
|
|
|
make appimage-nightly
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-12-05 06:52:50 -07:00
|
|
|
name: appimage
|
2020-12-04 18:55:31 -07:00
|
|
|
path: build/bin/nvim.appimage
|
|
|
|
retention-days: 1
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-12-05 06:52:50 -07:00
|
|
|
name: appimage
|
2020-12-04 18:55:31 -07:00
|
|
|
path: build/bin/nvim.appimage.zsync
|
|
|
|
retention-days: 1
|
|
|
|
|
2020-12-01 21:32:04 -07:00
|
|
|
macOS:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install brew packages
|
|
|
|
run: |
|
|
|
|
brew update >/dev/null
|
|
|
|
brew install automake ninja
|
|
|
|
- name: Build nightly
|
|
|
|
run: |
|
|
|
|
make CMAKE_BUILD_TYPE=Release CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11"
|
|
|
|
make DESTDIR="$GITHUB_WORKSPACE/build/nightly/nvim-osx64" install
|
|
|
|
- name: Create package
|
|
|
|
run: |
|
|
|
|
cd "$GITHUB_WORKSPACE/build/nightly"
|
|
|
|
mkdir -p bundle/nvim/libs
|
|
|
|
mkdir -p bundle/nvim/bin
|
|
|
|
cp nvim-osx64/bin/nvim bundle/nvim/bin/
|
|
|
|
libs=($(otool -L nvim-osx64/bin/nvim | sed 1d | sed -E -e 's|^[[:space:]]*||' -e 's| .*||'))
|
|
|
|
echo "libs:"
|
|
|
|
for lib in "${libs[@]}"; do
|
|
|
|
if echo "$lib" | grep -q -E 'libSystem|CoreFoundation' 2>/dev/null; then
|
|
|
|
echo " [skipped] $lib"
|
|
|
|
else
|
|
|
|
echo " $lib"
|
|
|
|
relname="libs/${lib##*/}"
|
|
|
|
cp -L "$lib" "bundle/nvim/$relname"
|
|
|
|
install_name_tool -change "$lib" "@executable_path/../$relname" bundle/nvim/bin/nvim
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
tar cjSf nvim-macos.tar.bz2 -C bundle nvim
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-12-05 06:52:50 -07:00
|
|
|
name: nvim-macos
|
2020-12-01 21:32:04 -07:00
|
|
|
path: build/nightly/nvim-macos.tar.bz2
|
|
|
|
retention-days: 1
|
|
|
|
|
|
|
|
publish:
|
2020-12-04 18:55:31 -07:00
|
|
|
needs: [linux, appimage, macOS]
|
2020-12-01 21:32:04 -07:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/download-artifact@v2
|
2020-12-05 09:47:03 -07:00
|
|
|
- if: github.event_name == 'workflow_dispatch'
|
|
|
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
|
|
|
- if: github.event_name == 'scheduled'
|
|
|
|
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
|
|
|
|
- if: env.TAG_NAME == 'nightly'
|
|
|
|
run: echo 'SUBJECT=Nvim development (prerelease) build' >> $GITHUB_ENV
|
|
|
|
- if: env.TAG_NAME != 'nightly'
|
|
|
|
run: echo 'SUBJECT=Nvim release build' >> $GITHUB_ENV
|
2020-12-05 06:52:50 -07:00
|
|
|
- uses: meeDamian/github-release@2.0
|
2020-12-01 21:32:04 -07:00
|
|
|
with:
|
2020-12-05 06:52:50 -07:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2020-12-05 09:47:03 -07:00
|
|
|
tag: ${{ env.TAG_NAME }}
|
2020-12-05 06:52:50 -07:00
|
|
|
name: ${{ needs.linux.outputs.release }}
|
2020-12-05 09:47:03 -07:00
|
|
|
prerelease: ${{ env.TAG_NAME == 'nightly' }}
|
2020-12-05 06:52:50 -07:00
|
|
|
commitish: ${{ github.sha }}
|
|
|
|
gzip: false
|
2020-12-05 09:47:03 -07:00
|
|
|
allow_override: ${{ env.TAG_NAME == 'nightly' }}
|
2020-12-05 06:52:50 -07:00
|
|
|
files: |
|
|
|
|
nvim-macos.tar.bz2:./nvim-macos/nvim-macos.tar.bz2
|
|
|
|
nvim-linux64.tar.gz:./nvim-linux64/nvim-linux64.tar.gz
|
|
|
|
nvim.appimage:./appimage/nvim.appimage
|
|
|
|
nvim.appimage.zsync:./appimage/nvim.appimage.zsync
|
2020-12-01 21:32:04 -07:00
|
|
|
body: |
|
2020-12-05 09:47:03 -07:00
|
|
|
${{ env.SUBJECT }}
|
2020-12-01 21:32:04 -07:00
|
|
|
```
|
2020-12-05 09:47:03 -07:00
|
|
|
${{ needs.linux.outputs.version }}```
|
2020-12-01 21:32:04 -07:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
### Windows
|
|
|
|
|
|
|
|
1. Extract **nvim-win64.zip** (or **nvim-win32.zip**)
|
|
|
|
2. Run `nvim-qt.exe`
|
|
|
|
|
|
|
|
### macOS
|
|
|
|
|
|
|
|
1. Download **nvim-macos.tar.gz**
|
|
|
|
2. Extract: `tar xzvf nvim-macos.tar.gz`
|
|
|
|
3. Run `./nvim-osx64/bin/nvim`
|
|
|
|
|
|
|
|
### Linux (x64)
|
|
|
|
|
|
|
|
1. Download **nvim.appimage**
|
|
|
|
2. Run `chmod u+x nvim.appimage && ./nvim.appimage`
|
|
|
|
- If your system does not have FUSE you can [extract the appimage](https://github.com/AppImage/AppImageKit/wiki/FUSE#type-2-appimage):
|
|
|
|
```
|
|
|
|
./nvim.appimage --appimage-extract
|
|
|
|
./squashfs-root/usr/bin/nvim
|
|
|
|
```
|
|
|
|
|
|
|
|
### Other
|
|
|
|
|
|
|
|
- Install by [package manager](https://github.com/neovim/neovim/wiki/Installing-Neovim)
|