Skip to content

Commit 724c742

Browse files
myuronclaude
andcommitted
fix: update CI workflow to build Nix flake configurations
The old workflow referenced deleted setup/ scripts. Updated to build NixOS, nix-darwin, and home-manager configurations per architecture. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d4f58a6 commit 724c742

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
21
name: TEST
32

43
on: [push]
54

65
jobs:
7-
make:
8-
runs-on: macos-15-intel
9-
10-
defaults:
11-
run:
12-
shell: bash
13-
6+
build-linux:
7+
runs-on: ubuntu-latest
148
steps:
159
- uses: actions/checkout@v4
16-
- name: Nix Install
17-
run: |
18-
set -x
19-
./setup/setup-nix.sh
10+
- uses: DeterminateSystems/nix-installer-action@main
11+
- uses: DeterminateSystems/magic-nix-cache-action@main
12+
- name: Build NixOS
13+
run: nix build .#nixosConfigurations.myNixOS.config.system.build.toplevel
14+
- name: Build Home Manager (NixOS)
15+
run: nix build .#homeConfigurations.myHome-nixos.activationPackage
2016

17+
build-darwin:
18+
runs-on: macos-15-intel
19+
steps:
2120
- uses: actions/checkout@v4
22-
- name: Symlink Setup
23-
run: |
24-
set -x
25-
./setup/setup-symlink.sh
21+
- uses: DeterminateSystems/nix-installer-action@main
22+
- uses: DeterminateSystems/magic-nix-cache-action@main
23+
- name: Build nix-darwin
24+
run: nix build .#darwinConfigurations.myDarwin.system --impure
25+
- name: Build Home Manager (Darwin)
26+
run: nix build .#homeConfigurations.myHome-darwin.activationPackage

0 commit comments

Comments
 (0)