forked from Bos55/nix-config
dev #2
1 changed files with 6 additions and 7 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
|
@ -7,12 +7,13 @@ env:
|
|||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
determine_hosts:
|
||||
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
|
||||
|
|
@ -22,18 +23,16 @@ jobs:
|
|||
id: hosts
|
||||
run: |
|
||||
hosts="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)"
|
||||
echo "hostnames=${hosts}" >> "$GITHUB_OUTPUT"
|
||||
outputs:
|
||||
hosts: ${{ steps.hosts.outputs.hostnames }}
|
||||
echo "hostnames=${hosts}" >> $GITHUB_OUTPUT
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
needs: determine_hosts
|
||||
needs: determine-hosts
|
||||
strategy:
|
||||
matrix:
|
||||
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
|
||||
hostname: ${{ fromJSON(needs.determine-hosts.outputs.hosts) }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue