Compare commits

...
Sign in to create a new pull request.

27 commits
dev ... dev

Author SHA1 Message Date
b9bd093ba8
change build command 2026-02-08 15:38:18 +01:00
3d4082c25c
hardcoding 2026-02-08 15:35:02 +01:00
a5ed47a478
without json parse 2026-02-08 15:30:52 +01:00
ea3492ee27
escape? 2026-02-08 15:28:01 +01:00
44131ad8e7
test 2026-02-08 15:17:34 +01:00
02f2ade703
Using EOF 2026-02-08 15:16:02 +01:00
9008b6ab3d
printf escaped 2026-02-08 15:14:24 +01:00
8824ee080c
Preserve quotes 2026-02-08 15:08:55 +01:00
bc42639059
Debugging needs outputs hosts 2026-02-08 14:59:10 +01:00
4245b09a71
Debugging needs outputs 2026-02-08 14:58:21 +01:00
478ace7bb4
Debugging extra step 2026-02-08 14:54:31 +01:00
4eff2772d1
Debugging 2026-02-08 14:50:41 +01:00
de54d86be1
Change names and ordere 2026-02-08 12:33:23 +01:00
3e78d7e0f7
add toolcache 2026-02-08 12:29:05 +01:00
99141d2c7a
fix mappings 2026-02-08 12:26:31 +01:00
675204152d
fix mappings 2026-02-08 12:25:52 +01:00
fce4a03fa5
use var directly 2026-02-08 12:25:00 +01:00
b5af201e86
run on push 2026-02-08 12:18:59 +01:00
2996df479f
Debug matrix 2026-02-08 12:17:33 +01:00
7d8a6693c1
try different way 2026-02-08 12:14:07 +01:00
cef1259f8d
fix json elements 2026-02-08 12:06:26 +01:00
bfbe4204e7
More specific hostnames 2026-02-08 12:04:02 +01:00
60fe8110b1
Add NixOS to build step as well 2026-02-08 12:00:31 +01:00
4103c488b3
Build each host 2026-02-08 11:58:43 +01:00
90bd5ed66b
Determine hosts 2026-02-08 11:58:30 +01:00
bc8118b48a
chore: Disable test workflow 2026-02-08 11:57:18 +01:00
16b72ed6e0
feat: Test Action 2026-02-06 14:15:19 +01:00
3 changed files with 66 additions and 0 deletions

48
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,48 @@
name: "Build"
on:
pull_request:
push:
env:
RUNNER_TOOL_CACHE: /toolcache
jobs:
determine-hosts:
name: "Determining hosts to build"
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
outputs:
hosts: ${{ steps.hosts.outputs.hostnames }}
steps:
- uses: actions/checkout@v5
- uses: https://github.com/cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: "Determine hosts"
id: hosts
run: |
hostnames="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)"
printf "hostnames=%s\n" "${hostnames}" >> "${GITHUB_OUTPUT}"
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
needs: determine-hosts
strategy:
matrix:
hostname: [
Development
Testing
]
steps:
- uses: actions/checkout@v5
- uses: https://github.com/cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: "Build host"
run: |
nix build ".#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel"

17
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: "Test"
on:
pull_request:
push:
jobs:
tests:
if: false
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v5
- uses: https://github.com/cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: "My custom step"
run: nix run nixpkgs#hello

1
.gitignore vendored
View file

@ -1 +1,2 @@
.idea .idea
result