Skip to content

Commit

Permalink
Add Github Action to attempt builds on PR and Push
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonFriberg committed Oct 27, 2024
1 parent f49aad3 commit 2dc02d8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-home-manager-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Home Manager Configuration
on:
pull_request:
push:
branches: [master]
workflow_dispatch: # allows manual triggering

jobs:
build-home-manager:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Configure Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Validate flake lockfile
uses: DeterminateSystems/flake-checker-action@main

- name: Build Home Manager
run: nix shell nixpkgs#home-manager -c home-manager build --flake .#antonfr

0 comments on commit 2dc02d8

Please sign in to comment.