From 8997c8b56309e937ffcd4e0191aabf9898c2bae6 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 4 Dec 2020 20:55:31 -0500 Subject: [PATCH] GHA: Build appimage for nightly --- .github/workflows/nightly.yml | 41 ++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4b1d20c4e7..f1b524921f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,6 +30,29 @@ jobs: path: build/nightly/nvim-linux64.tar.gz retention-days: 1 + 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: + name: nvim.appimage + path: build/bin/nvim.appimage + retention-days: 1 + - uses: actions/upload-artifact@v2 + with: + name: nvim.appimage.zsync + path: build/bin/nvim.appimage.zsync + retention-days: 1 + macOS: runs-on: macos-10.15 steps: @@ -68,7 +91,7 @@ jobs: retention-days: 1 publish: - needs: [linux, macOS] + needs: [linux, appimage, macOS] runs-on: ubuntu-20.04 steps: - uses: actions/download-artifact@v2 @@ -126,3 +149,19 @@ jobs: asset_path: ./nvim-linux64.tar.gz asset_name: nvim-linux64.tar.gz asset_content_type: application/gzip + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./nvim.appimage + asset_name: nvim.appimage + asset_content_type: application/x-executable + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./nvim.appimage.zsync + asset_name: nvim.appimage.zsync + asset_content_type: application/octet-stream