From 2915e42a1d5aed9eb03a0895e2f8a9b91a09d3c4 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 30 Nov 2024 18:05:22 +0000 Subject: [PATCH] ci: Group CI jobs --- .gitea/workflows/ci.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index bdfba21..cccd6db 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -6,7 +6,7 @@ on: jobs: check: - name: Check, build and cache Nix flake + name: Check, build and cache nixfiles runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -26,17 +26,20 @@ jobs: - name: Check flake run: nix flake check --no-build + - name: Build (and cache) the world id: build env: HARMONIA_SSH_KEY: ${{ secrets.HARMONIA_SSH_KEY }} run: | nix eval --json --apply "builtins.attrNames" .#ci.x86_64-linux | jq -cr '.[]' | while read job; do - echo "Building CI job $job" + echo "::group::Build $job" nix build --no-link .#ci.x86_64-linux."$job" + echo "::endgroup::" - echo "Caching CI job $job" + echo "::group::Cache $job" ci/push-to-cache.sh "$(nix eval --raw .#ci.x86_64-linux."$job")" + echo "::endgroup::" done echo "Building and caching CI derivation"