Nix Build and Cache #6
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: "Nix Build and Cache" | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: "main build" | |
required: true | |
default: "main" | |
env: | |
CACHIX_CACHE_NAME: "wombatfromhell" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: ${{ env.CACHIX_CACHE_NAME }} | |
authToken: "${{ secrets.CACHIX_TOKEN }}" | |
- run: nix build . --print-out-paths | cachix push ${{ env.CACHIX_CACHE_NAME }} |