Build and populate cache #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and populate cache | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "flake/pkgs" | |
- "**.lock" | |
schedule: | |
- cron: "0 1 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
- bellado | |
- isabelroses-website | |
- catppuccinifier-cli | |
- lutgen-rs | |
- patched-gjs | |
- plymouth-theme-catppuccin | |
steps: | |
- name: Maximize Space | |
uses: easimon/maximize-build-space@v10 | |
with: | |
overprovision-lvm: true | |
remove-android: true | |
remove-dotnet: true | |
remove-haskell: true | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
logger: pretty | |
- name: Nix Magic Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Setup cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
name: isabelroses | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
authToken: "${{ secrets.CACHIX_TOKEN }}" | |
- name: Set default git branch | |
run: git config --global init.defaultBranch main | |
- name: Build from the matrix | |
run: nix build -L .#${{ matrix.package }} |