forked from Bos55/nix-config
Compare commits
1 commit
b9bd093ba8
...
c04bce06b6
| Author | SHA1 | Date | |
|---|---|---|---|
| c04bce06b6 |
1 changed files with 4 additions and 9 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
|
@ -3,15 +3,11 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
determine-hosts:
|
determine-hosts:
|
||||||
name: "Determining hosts to build"
|
name: "Determining hosts to build"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container: catthehacker/ubuntu:act-24.04
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
outputs:
|
outputs:
|
||||||
hosts: ${{ steps.hosts.outputs.hostnames }}
|
hosts: ${{ steps.hosts.outputs.hostnames }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -27,13 +23,12 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container: catthehacker/ubuntu:act-24.04
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
needs: determine-hosts
|
needs: determine-hosts
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hostname: [
|
hostname: [
|
||||||
Development
|
Development,
|
||||||
Testing
|
Testing
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -44,5 +39,5 @@ jobs:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: "Build host"
|
- name: "Build host"
|
||||||
run: |
|
run: |
|
||||||
nix build ".#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel"
|
nix build ".#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel" --verbose
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue