-
Notifications
You must be signed in to change notification settings - Fork 41
36 lines (34 loc) · 1.2 KB
/
flake-check.yml
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
# Nix flake checker determines the health of the flake.lock files.
# See https://determinate.systems/posts/flake-checker for some
# explanation. This checks that the branches that are relied on for
# packages are maintained and have recent commits. If they aren't
# maintained then the checker will notify us and we can update the
# lock or flake files.
---
name: Test Flakes
on: [push, pull_request]
jobs:
test-flakes:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Check Nix flake inputs (./_data/python-pfhub/flake.lock)
uses: DeterminateSystems/flake-checker-action@v5
with:
flake-lock-path: _data/python-pfhub/flake.lock
- name: Build Nix package
run: |
cd _data/python-pfhub
nix develop # shoud be nix build, but linkml needs work
cd $GITHUB_WORKSPACE
- name: Check Nix flake inputs (./flake.lock)
uses: DeterminateSystems/flake-checker-action@v5
- name: Build Nix package
run: |
nix flake lock --update-input pfhub
nix build