mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
update CI for dual config
This commit is contained in:
parent
b2489ca8f0
commit
b65b7296e5
2 changed files with 29 additions and 5 deletions
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
|
|
@ -7,14 +7,14 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Login to ghcr.io
|
name: Login to ghcr.io
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -31,6 +31,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/iofq/nvim:latest
|
image: ghcr.io/iofq/nvim:latest
|
||||||
path: /app/neovim-x86_64-linux.AppImage
|
path: /app/neovim-x86_64-linux.AppImage
|
||||||
|
|
||||||
|
-
|
||||||
|
name: Extract .tar.gz from container
|
||||||
|
uses: shrink/actions-docker-extract@v1
|
||||||
|
id: extract-minimal
|
||||||
|
with:
|
||||||
|
image: ghcr.io/iofq/nvim:latest
|
||||||
|
path: /app/neovim-x86_64-linux-minimal.AppImage
|
||||||
-
|
-
|
||||||
name: Upload archive to release
|
name: Upload archive to release
|
||||||
uses: xresloader/upload-to-github-release@v1
|
uses: xresloader/upload-to-github-release@v1
|
||||||
|
|
@ -40,3 +48,12 @@ jobs:
|
||||||
file: ${{ steps.extract.outputs.destination }}
|
file: ${{ steps.extract.outputs.destination }}
|
||||||
update_latest_release: true
|
update_latest_release: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
-
|
||||||
|
name: Upload archive to release
|
||||||
|
uses: xresloader/upload-to-github-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
file: ${{ steps.extract-minimal.outputs.destination }}
|
||||||
|
update_latest_release: true
|
||||||
|
overwrite: true
|
||||||
|
|
|
||||||
11
Dockerfile
11
Dockerfile
|
|
@ -6,6 +6,13 @@ COPY . .
|
||||||
RUN nix bundle \
|
RUN nix bundle \
|
||||||
--bundler github:ralismark/nix-appimage \
|
--bundler github:ralismark/nix-appimage \
|
||||||
--extra-experimental-features nix-command \
|
--extra-experimental-features nix-command \
|
||||||
--extra-experimental-features flakes . && \
|
--extra-experimental-features flakes .#full && \
|
||||||
cp -L nvim-x86_64.AppImage neovim-x86_64-linux.AppImage && \
|
mv $(realpath nvim-x86_64.AppImage) neovim-x86_64-linux.AppImage && \
|
||||||
|
nix-collect-garbage
|
||||||
|
|
||||||
|
RUN nix bundle \
|
||||||
|
--bundler github:ralismark/nix-appimage \
|
||||||
|
--extra-experimental-features nix-command \
|
||||||
|
--extra-experimental-features flakes .#minimal && \
|
||||||
|
mv $(realpath nvim-x86_64.AppImage) neovim-x86_64-linux-minimal.AppImage && \
|
||||||
nix-collect-garbage
|
nix-collect-garbage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue