test workflow

This commit is contained in:
iofq 2024-01-28 19:26:59 -06:00
parent d28f5708de
commit 72f3adeca1

View file

@ -9,6 +9,11 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
include:
- package_name: full
- package_name: minimal
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
@ -17,20 +22,15 @@ jobs:
id: build id: build
run: | run: |
nix bundle \ nix bundle \
-o nvim.AppImage \ -o nvim-${{ matrix.package_name }}.AppImage \
--bundler github:ralismark/nix-appimage \ --bundler github:ralismark/nix-appimage \
--extra-experimental-features nix-command \ --extra-experimental-features nix-command \
--extra-experimental-features flakes .#full --extra-experimental-features flakes .#${{ matrix.package_name }}
nix bundle \
-o nvim-minimal.AppImage \
--bundler github:ralismark/nix-appimage \
--extra-experimental-features nix-command \
--extra-experimental-features flakes .#minimal
ls -lahrt && pwd
- name: Upload bundle to release - name: Upload bundle to release
if: github.ref == 'master' && ${{ success() }}
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "./*.AppImage" file: "nvim-${{ matrix.package_name }}.AppImage"
tag: latest
overwrite: true overwrite: true