-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 930 Bytes
/
nix-checks.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
name: Nix Checks
on:
push:
paths:
- 'flake.nix'
- 'flake.lock'
- 'nix-cleanup.sh'
- '.github/workflows/nix-checks.yml'
jobs:
nix_checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
id-token: write
contents: read
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 #v4
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c #v26
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
sandbox = true # force sandbox for all OS (normally disabled for macOS)
- name: Run app
run: nix run --print-build-logs --show-trace '.#nix-cleanup' -- --help
- name: Run app with --system
run: nix run --print-build-logs --show-trace '.#nix-cleanup' -- --system