nyxexprs/.github/workflows/nix.yml

25 lines
535 B
YAML
Raw Normal View History

2023-11-03 08:30:38 +00:00
name: Nix
on:
workflow_call:
inputs:
command:
required: true
type: string
secrets:
CACHIX_AUTH_TOKEN:
required: false
jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2023-11-03 08:30:38 +00:00
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
2023-11-03 08:30:38 +00:00
with:
2023-11-03 13:21:00 +00:00
name: nyx
2023-11-03 08:30:38 +00:00
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: ${{ inputs.command }}