From b65b7296e56ed87cf83c2b57296892d172c5aedb Mon Sep 17 00:00:00 2001 From: iofq Date: Fri, 26 May 2023 15:06:21 -0500 Subject: [PATCH] update CI for dual config --- .github/workflows/main.yml | 23 ++++++++++++++++++++--- Dockerfile | 11 +++++++++-- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2efcc74..0469fb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,14 +7,14 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - - name: Set up Docker Buildx + steps: + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to ghcr.io uses: docker/login-action@v1 - with: + with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} @@ -31,6 +31,14 @@ jobs: with: image: ghcr.io/iofq/nvim:latest 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 uses: xresloader/upload-to-github-release@v1 @@ -40,3 +48,12 @@ jobs: file: ${{ steps.extract.outputs.destination }} update_latest_release: 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 diff --git a/Dockerfile b/Dockerfile index 0d72a8c..04ff68f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,13 @@ COPY . . RUN nix bundle \ --bundler github:ralismark/nix-appimage \ --extra-experimental-features nix-command \ - --extra-experimental-features flakes . && \ - cp -L nvim-x86_64.AppImage neovim-x86_64-linux.AppImage && \ + --extra-experimental-features flakes .#full && \ + 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