mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: build-and-cache
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- .github/**
|
|
- assets/**
|
|
- .gitignore
|
|
|
|
jobs:
|
|
nix:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
package:
|
|
- default
|
|
- nix
|
|
- tidal
|
|
- maximal
|
|
steps:
|
|
- uses: easimon/maximize-build-space@v6
|
|
with:
|
|
overprovision-lvm: true
|
|
remove-android: true
|
|
remove-dotnet: true
|
|
remove-haskell: true
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v18
|
|
with:
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
auto-optimise-store = true
|
|
experimental-features = nix-command flakes
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
- uses: cachix/cachix-action@v12
|
|
with:
|
|
authToken: ${{ secrets.CACHIX_TOKEN }}
|
|
extraPullNames: nix-community
|
|
name: neovim-flake
|
|
- name: Set default git branch (to reduce log spam)
|
|
run: git config --global init.defaultBranch main
|
|
- name: Validate Flakes
|
|
run: nix flake check
|
|
- name: Build Hneovim-flake with default settings
|
|
run: nix build .#${{ matrix.package }} --print-build-logs
|