mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 16:55:17 -06:00
36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
name: build
|
|
|
|
on:
|
|
pull_request:
|
|
types: opened
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- package_name: full
|
|
- package_name: minimal
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- name: Run `nix bundle`
|
|
id: build
|
|
run: |
|
|
nix bundle \
|
|
-o nvim-${{ matrix.package_name }}.AppImage \
|
|
--bundler github:ralismark/nix-appimage \
|
|
--extra-experimental-features nix-command \
|
|
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
|
- name: Upload bundle to release
|
|
if: github.ref == 'master' && ${{ success() }}
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: "nvim-x86_64-linux-${{ matrix.package_name }}.AppImage"
|
|
tag: latest
|
|
overwrite: true
|