Build and cache .#iosevka-custom #3
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 cache flake output | |
on: | |
push: | |
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: | |
- if: ${{ inputs.flake == '.' }} | |
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 }}" |