1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-28 02:39:49 +01:00
neovim-flake/.github/workflows/cachix.yml

49 lines
1.3 KiB
YAML
Raw Normal View History

2023-02-05 14:59:06 +01:00
name: build-and-cache
2023-02-05 23:31:19 +01:00
on:
workflow_dispatch:
push:
2023-02-06 20:02:44 +01:00
branches:
- main
paths-ignore:
- .github/**
- assets/**
- .gitignore
2023-02-05 14:59:06 +01:00
jobs:
2023-02-05 23:31:19 +01:00
nix:
2023-02-05 14:59:06 +01:00
runs-on: ubuntu-latest
2023-02-05 23:31:19 +01:00
strategy:
matrix:
package:
- default
- nix
- tidal
- maximal
2023-02-05 14:59:06 +01:00
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:
2023-02-05 23:31:19 +01:00
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
2023-02-05 14:59:06 +01:00
- 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
2023-02-05 23:31:19 +01:00
run: nix build .#${{ matrix.package }} --print-build-logs