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:
|
2023-11-03 11:37:18 +00:00
|
|
|
- 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
|
2024-01-15 01:38:44 +00:00
|
|
|
- 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 }}
|