34 lines
698 B
YAML
34 lines
698 B
YAML
name: Nix Setup
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
command:
|
|
required: false
|
|
type: string
|
|
platform:
|
|
default: "ubuntu"
|
|
required: false
|
|
type: string
|
|
secrets:
|
|
GH_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
nix:
|
|
runs-on: "${{ inputs.platform }}-latest"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: "${{ secrets.GH_TOKEN }}"
|
|
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- name: Nix Magic Cache
|
|
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
- name: "Run Input: ${{ inputs.command }}"
|
|
run: "${{ inputs.command }}"
|