Skip to content

Commit 0076283

Browse files
authored
Update flake inputs (#202)
* Update flake inputs * Make sure we're building only the packages we want to build on CI * We want to build packages when the package workflow changes
1 parent d7ed283 commit 0076283

4 files changed

Lines changed: 49 additions & 41 deletions

File tree

.github/workflows/packages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ jobs:
4242
architecture:
4343
- aarch64-darwin
4444
package:
45+
- firehydrant-mcp
4546
- mcp-remote
4647
- nix-docker
4748
- oh-my-tmux
48-
- render-workflows
49+
- postgres-mcp
4950
- sf-pro
5051
name: Build packages
5152
'on':
5253
push:
5354
paths:
54-
- flake.lock
55+
- .github/**/*.yml
5556
- modules/packages/**/*.nix
57+
- flake.lock

Justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ build-system name:
1818
build-home name:
1919
nh home build .#homeConfigurations.{{ name }}.activation-script {{ nh-build-flags }}
2020

21+
[doc("Build a specific package")]
22+
build-package name:
23+
nom build .#packages.aarch64-darwin.{{ name }}
24+
2125
[doc("Switch to the current host profile")]
2226
switch:
2327
nh darwin switch .#

flake.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/development/ci.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ in {
9292

9393
".github/workflows/packages.yml" = {
9494
name = "Build packages";
95-
on.push.paths = [ "flake.lock" "modules/packages/**/*.nix" ];
95+
on.push.paths =
96+
[ ".github/**/*.yml" "modules/packages/**/*.nix" "flake.lock" ];
9697
jobs = {
9798
build-package = {
9899
name = "Build package";
99100
runs-on = "macos-15";
100101
strategy.matrix = {
101102
architecture = [ "aarch64-darwin" ];
102-
package = l.attrNames self.packages.aarch64-darwin;
103+
package = l.filter (name: name != "render-workflows")
104+
(l.attrNames self.packages.aarch64-darwin);
103105
};
104106
steps = setup ++ [{
105107
name =

0 commit comments

Comments
 (0)