From 6635c79b724bc087383b2a47ce9ae28ae0c0c7d5 Mon Sep 17 00:00:00 2001 From: iofq Date: Fri, 12 May 2023 14:05:24 -0500 Subject: [PATCH] add CI --- .github/workflows/main.yml | 2 +- Dockerfile | 7 ++++--- nvim-x86_64.AppImage | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) create mode 120000 nvim-x86_64.AppImage diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35272c8..83e77d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: id: extract with: image: ghcr.io/iofq/nvim:latest - path: /root/term.tgz + path: /root/neovim-x86_64-linux.AppImage - name: Upload archive to release uses: xresloader/upload-to-github-release@v1 diff --git a/Dockerfile b/Dockerfile index 40d3faf..64698a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ COPY . . RUN nix bundle \ --bundler github:ralismark/nix-appimage \ --extra-experimental-features nix-command \ - --extra-experimental-features flakes \ - . + --extra-experimental-features flakes . && \ + cp -L nvim-x86_64.AppImage neovim-x86_64.AppImage && \ + nix-collect-garbage -ENTRYPOINT [ "nvim-x86_64.AppImage" ] +ENTRYPOINT [ "neovim-x86_64.AppImage" ] diff --git a/nvim-x86_64.AppImage b/nvim-x86_64.AppImage new file mode 120000 index 0000000..7e13143 --- /dev/null +++ b/nvim-x86_64.AppImage @@ -0,0 +1 @@ +/nix/store/6ggkwzkz632f665c9jnjswill594ahy4-nvim-x86_64.AppImage \ No newline at end of file