Skip to content

Commit 6f6c240

Browse files
committed
ci: Switch to ossystems/nix-actions and drop build matrix
Replace the hand-rolled CI and update-flake workflows with ossystems/nix-actions composite actions. The CI action builds every nixosConfigurations toplevel, so the per-host matrix is gone. Workflows run on the self-hosted runner, dropping install-nix and cachix.
1 parent b438004 commit 6f6c240

2 files changed

Lines changed: 12 additions & 54 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,10 @@ on:
1212
- 'flake.lock'
1313

1414
jobs:
15-
check:
16-
runs-on: ubuntu-latest
15+
ci:
16+
runs-on: self-hosted
1717
steps:
18-
- uses: actions/checkout@v6
19-
- name: Install Nix
20-
uses: nixbuild/nix-quick-install-action@v34
21-
with:
22-
nix_conf: experimental-features = nix-command flakes repl-flake
23-
- uses: cachix/cachix-action@v17
24-
with:
25-
name: ossystems-lab
26-
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
27-
- name: Install SSH Private Key
28-
uses: webfactory/ssh-agent@v0.10.0
29-
with:
30-
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
31-
- run: nix flake check
32-
33-
nixos:
34-
runs-on: ubuntu-latest
35-
strategy:
36-
matrix:
37-
nixosConfiguration:
38-
- centrium
39-
- hyper
40-
- pikachu
41-
steps:
42-
- run: sudo apt-get clean
43-
- uses: actions/checkout@v6
44-
- name: Install Nix
45-
uses: nixbuild/nix-quick-install-action@v34
46-
with:
47-
nix_conf: experimental-features = nix-command flakes repl-flake
48-
- uses: cachix/cachix-action@v17
49-
with:
50-
name: ossystems-lab
51-
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
52-
- name: Install SSH Private Key
53-
uses: webfactory/ssh-agent@v0.10.0
54-
with:
55-
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
56-
- run: nix -Lv build ".#nixosConfigurations.${{ matrix.nixosConfiguration }}.config.system.build.toplevel"
18+
- uses: ossystems/nix-actions@v1
19+
with:
20+
checks: true
21+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

.github/workflows/update-flake.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ on:
66

77
jobs:
88
lockfile:
9-
runs-on: ubuntu-latest
9+
runs-on: self-hosted
10+
permissions:
11+
contents: write
12+
pull-requests: write
1013
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v6
13-
- name: Install Nix
14-
uses: nixbuild/nix-quick-install-action@v34
14+
- uses: ossystems/nix-actions/update-flake@v1
1515
with:
16-
nix_conf: experimental-features = nix-command flakes repl-flake
17-
- name: Update flake.lock
18-
id: update
19-
uses: DeterminateSystems/update-flake-lock@v28
20-
with:
21-
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
22-
- name: Print PR number
23-
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.
16+
base-branch: master

0 commit comments

Comments
 (0)