Skip to content

Commit

Permalink
ci(cache-flake-output): init
Browse files Browse the repository at this point in the history
Builds and uploads a specific flake output to Cachix.
Useful for when the `cachix` workflow runs out of storage space — run
the `cache-flake-output` workflow to build and cache huge derivations
separately.

[skip ci]
  • Loading branch information
dixslyf committed May 5, 2024
1 parent 72c6711 commit df5addb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cache-flake-output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Build and cache flake output

on:
workflow_dispatch:
inputs:
flake:
description: "The flake whose output will be built. Defaults to the repository's flake."
type: string
required: true
default: "."
output:
description: "The name of the flake output to build."
type: string
required: true

run-name: "Build and cache ${{ inputs.flake }}#${{ inputs.output }}"

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build and cache
uses: ./.github/actions/build
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
derivation: "${{ inputs.flake }}#${{ inputs.output }}"

0 comments on commit df5addb

Please sign in to comment.