-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (37 loc) · 916 Bytes
/
nix.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
37
38
39
40
41
42
# First pass at a nix-based GHA setup for penumbra-guide.
name: Validate nix env for GHA
on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
jobs:
check_nix:
name: build
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: install nix
uses: DeterminateSystems/nix-installer-action@main
- name: load nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: lint nix
uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
- name: install pnpm deps
run: |
nix develop --command \
pnpm install
- name: build static docroot
run: |
nix develop --command \
pnpm build
- name: view built docroot
run: |
find ./out