mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
f31f2b6082
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: "Set up binary cache"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- .github/**
|
|
- assets/**
|
|
- .gitignore
|
|
|
|
jobs:
|
|
cachix:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
package:
|
|
- default
|
|
- nix
|
|
- tidal
|
|
- maximal
|
|
steps:
|
|
- uses: easimon/maximize-build-space@v6
|
|
name: Maximize build space
|
|
with:
|
|
overprovision-lvm: true
|
|
remove-android: true
|
|
remove-dotnet: true
|
|
remove-haskell: true
|
|
remove-codeql: true
|
|
|
|
- uses: actions/checkout@v4
|
|
name: Checkout
|
|
|
|
- uses: cachix/install-nix-action@v20
|
|
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 neovim-flake with default settings
|
|
run: nix build .#${{ matrix.package }} --print-build-logs
|