-
Notifications
You must be signed in to change notification settings - Fork 111
44 lines (35 loc) · 1.08 KB
/
test-nix-flake.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
43
name: Test Nix Flake
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
nixos-build:
runs-on: ubuntu-latest
name: Build NixOS Configuration
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
- name: Build NixOS Flake
run: |
ls -la
cat ./flake.nix
nix build --extra-experimental-features 'nix-command flakes' --no-link --keep-going --option extra-sandbox-paths / --impure .#nixosConfigurations."x86_64-linux".config.system.build.toplevel
darwin-build:
runs-on: ubuntu-latest
name: Build nix-darwin Configuration
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
- name: Build nix-darwin Flake
run: |
ls -la
cat ./flake.nix
nix build --extra-experimental-features 'nix-command flakes' --no-link --keep-going --option extra-sandbox-paths / --impure .#darwinConfigurations."Dustins-MBP".system