CI: build & cache

This commit is contained in:
raf 2023-11-03 11:30:38 +03:00
commit 0eef5abf3f
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
3 changed files with 78 additions and 0 deletions

24
.github/workflows/nix.yml vendored Normal file
View file

@ -0,0 +1,24 @@
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@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v12
with:
name: nix-gaming
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: ${{ inputs.command }}