-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00c1735
commit 1e5bbf7
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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: | | ||
nix build --no-link --keep-going --option extra-sandbox-paths / --impure --expr '(import ./flake.nix).nixosConfigurations.felix.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: | | ||
nix build --no-link --keep-going --option extra-sandbox-paths / --impure --expr '(import ./flake.nix).darwinConfigurations.Dustins-MBP.system' | ||