mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-01 19:11:15 +00:00
28 lines
620 B
YAML
28 lines
620 B
YAML
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
|
|
- name: Install Lix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
with:
|
|
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
|
logger: pretty
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: nyx
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
- run: ${{ inputs.command }}
|