mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 00:45:17 -06:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: build
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
types: [opened]
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
package_name: ["nvim"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
|
- name: Run `nix bundle`
|
|
id: build
|
|
run: |
|
|
nix bundle \
|
|
-o ${{ matrix.package_name }}.AppImage \
|
|
--bundler github:ralismark/nix-appimage \
|
|
--extra-experimental-features nix-command \
|
|
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
|
echo "Done building AppImage for ${{ matrix.package_name }}"
|
|
- name: Upload bundle to release
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: "${{ matrix.package_name }}.AppImage"
|
|
asset_name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
|
tag: latest
|
|
overwrite: true
|