-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (36 loc) · 1011 Bytes
/
Copy pathcheck-flake-utils.yml
File metadata and controls
41 lines (36 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Check flake-utils
on:
push:
paths:
# Set this to the directory of the template
- flake-utils/**
- .github/workflows/check-flake-utils.yml
workflow_dispatch:
workflow_call:
permissions:
contents: read
concurrency:
group: check-flake-utils-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
path: ./tmp
- name: Set up Nix
uses: ./tmp/.github/actions/setup-nix
with:
cachix-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake new -t ./tmp#flake-utils ./work
- name: Prepare the project
working-directory: work
run: |
git init
git add .
# Run any task to check your flake
- run: nix build '.#hello' -L
working-directory: work