-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1003 Bytes
/
build.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
name: "build cache"
on:
pull_request:
push:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 ## not shallow
filter: 'blob:none' ## but blob-less
submodules: true
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
install_url: https://releases.nixos.org/nix/nix-2.23.3/install
extra_nix_config: |
experimental-features = nix-command flakes fetch-closure configurable-impure-env
impure-env = GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
trusted-users = root runner @wheel
- uses: cachix/cachix-action@v12
with:
name: chezbryan
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: nix-community
- run: nix config show
- run: ./build.sh --dry-run
- run: ./build.sh