2023-04-15 08:44:12 +00:00
|
|
|
name: "Set up binary cache"
|
2023-02-05 13:59:06 +00:00
|
|
|
|
2023-02-05 22:31:19 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-02-05 22:24:00 +00:00
|
|
|
push:
|
2023-02-06 19:02:44 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2023-02-05 22:24:00 +00:00
|
|
|
paths-ignore:
|
2023-02-16 19:01:59 +00:00
|
|
|
- .github/**
|
|
|
|
- assets/**
|
|
|
|
- .gitignore
|
2023-02-05 13:59:06 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-07-24 05:19:27 +00:00
|
|
|
cachix:
|
2023-02-05 13:59:06 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-24 14:26:21 +00:00
|
|
|
|
2023-02-05 22:31:19 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
package:
|
2023-07-24 05:19:27 +00:00
|
|
|
- default
|
|
|
|
- nix
|
|
|
|
- tidal
|
|
|
|
- maximal
|
2023-02-05 13:59:06 +00:00
|
|
|
steps:
|
2023-11-28 19:59:15 +00:00
|
|
|
- uses: easimon/maximize-build-space@v9
|
2023-10-01 13:17:48 +00:00
|
|
|
name: Maximize build space
|
2023-02-05 13:59:06 +00:00
|
|
|
with:
|
|
|
|
overprovision-lvm: true
|
|
|
|
remove-android: true
|
|
|
|
remove-dotnet: true
|
|
|
|
remove-haskell: true
|
2023-10-01 13:17:48 +00:00
|
|
|
remove-codeql: true
|
|
|
|
|
2023-10-20 09:04:31 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-01 13:17:48 +00:00
|
|
|
name: Checkout
|
|
|
|
|
2023-10-20 09:24:24 +00:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
2023-10-01 13:17:48 +00:00
|
|
|
|
2023-02-05 13:59:06 +00:00
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
authToken: ${{ secrets.CACHIX_TOKEN }}
|
|
|
|
extraPullNames: nix-community
|
|
|
|
name: neovim-flake
|
2023-10-01 13:17:48 +00:00
|
|
|
|
2023-02-05 13:59:06 +00:00
|
|
|
- name: Set default git branch (to reduce log spam)
|
|
|
|
run: git config --global init.defaultBranch main
|
2023-10-01 13:17:48 +00:00
|
|
|
|
2023-02-05 13:59:06 +00:00
|
|
|
- name: Validate Flakes
|
|
|
|
run: nix flake check
|
2023-10-01 13:17:48 +00:00
|
|
|
|
2023-04-15 08:33:50 +00:00
|
|
|
- name: Build neovim-flake with default settings
|
2023-02-05 22:31:19 +00:00
|
|
|
run: nix build .#${{ matrix.package }} --print-build-logs
|