Skip to content

Commit

Permalink
Try Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlyons committed Nov 11, 2023
1 parent 00c1735 commit 1e5bbf7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-nix-flake.yml
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'

0 comments on commit 1e5bbf7

Please sign in to comment.