Compare commits
27 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9bd093ba8 | |||
| 3d4082c25c | |||
| a5ed47a478 | |||
| ea3492ee27 | |||
| 44131ad8e7 | |||
| 02f2ade703 | |||
| 9008b6ab3d | |||
| 8824ee080c | |||
| bc42639059 | |||
| 4245b09a71 | |||
| 478ace7bb4 | |||
| 4eff2772d1 | |||
| de54d86be1 | |||
| 3e78d7e0f7 | |||
| 99141d2c7a | |||
| 675204152d | |||
| fce4a03fa5 | |||
| b5af201e86 | |||
| 2996df479f | |||
| 7d8a6693c1 | |||
| cef1259f8d | |||
| bfbe4204e7 | |||
| 60fe8110b1 | |||
| 4103c488b3 | |||
| 90bd5ed66b | |||
| bc8118b48a | |||
| 16b72ed6e0 |
3 changed files with 66 additions and 0 deletions
48
.github/workflows/build.yml
vendored
Normal file
48
.github/workflows/build.yml
vendored
Normal 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
17
.github/workflows/test.yml
vendored
Normal 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
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
.idea
|
||||
result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue