File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Nix Build
2+
3+ on :
4+ pull_request :
5+ push :
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Install nix
17+ uses : cachix/install-nix-action@v31
18+ with :
19+ nix_path : nixpkgs=channel:nixos-unstable
20+
21+ - name : Configure nix
22+ run : |
23+ mkdir -p ~/.config/nix
24+ echo 'accept-flake-config = true' >>~/.config/nix/nix.conf
25+
26+ - name : Check nix build
27+ run : nix build
28+
29+ - name : Check nix develop
30+ run : |
31+ SYSTEM=$(nix eval --impure --expr builtins.currentSystem)
32+ SHELLS=$(nix eval --raw ".#devShells.$SYSTEM" \
33+ --apply 's: builtins.toString (builtins.attrNames s)')
34+ for NAME in $SHELLS
35+ do
36+ echo ">>>> $NAME <<<<"
37+ nix develop ".#$NAME" -c true
38+ done
You can’t perform that action at this time.
0 commit comments