Skip to content

print jq on one line #6

print jq on one line

print jq on one line #6

Workflow file for this run

name: build nixos hosts
on:
push:
branches:
- ci
permissions:
contents: write
jobs:
define-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
echo -n "hosts=" >> "$GITHUB_OUTPUT"
ls hosts | sed -n 's/\.nix$//p' | jq -R | jq -sc >> "$GITHUB_OUTPUT"
build:
runs-on: ubuntu-latest
needs: define-matrix
strategy:
matrix:
host: ${{ fromJSON(needs.define-matrix.outputs.hosts) }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flake-checker-action@v9
- name: Build NixOS hosts
run: nix develop -c colmena build --on ${{ matrix.host }}