From 08fbb0960840bfa0a5edae4a9424aae829019718 Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Tue, 18 Feb 2025 12:15:56 -0700 Subject: [PATCH] Add a GitHub job to build the `homeConfiguration` --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 634c094..0de2b10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,3 +19,17 @@ jobs: - run: | nix-build default.nix -A unison-ucm PATH='' ./result/bin/ucm --version + test_homeConfiguration: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 + - uses: nixbuild/nix-quick-install-action@25aff27c252e0c8cdda3264805f7b6bcd92c8718 # # v29 + - uses: nix-community/cache-nix-action@8351fb9f51c580c96c509987ebb99e38aed956ce # 5.2.1 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + - run: | + nix run github:nix-community/home-manager -- build --flake .#x86_64-linux-example + PATH='' ./result/home-path/bin/ucm --version