Skip to content

Build and populate cache #32

Build and populate cache

Build and populate cache #32

Workflow file for this run

name: Build and populate cache
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 3" # 03:00 on Wednesday, this is beacuse we want to update 1hr after the inputs update
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- default
- nvim-treesitter
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
remove-codeql: true
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
name: isabelroses
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_TOKEN }}"
- name: Build from the matrix
run: nix build -L .#${{ matrix.package }}