ci: Group CI jobs
Some checks failed
CI / Check, build and cache nixfiles (push) Failing after 33m39s
Some checks failed
CI / Check, build and cache nixfiles (push) Failing after 33m39s
This commit is contained in:
parent
5783d3a51e
commit
2915e42a1d
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check, build and cache Nix flake
|
name: Check, build and cache nixfiles
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -26,17 +26,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Check flake
|
- name: Check flake
|
||||||
run: nix flake check --no-build
|
run: nix flake check --no-build
|
||||||
|
|
||||||
- name: Build (and cache) the world
|
- name: Build (and cache) the world
|
||||||
id: build
|
id: build
|
||||||
env:
|
env:
|
||||||
HARMONIA_SSH_KEY: ${{ secrets.HARMONIA_SSH_KEY }}
|
HARMONIA_SSH_KEY: ${{ secrets.HARMONIA_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
nix eval --json --apply "builtins.attrNames" .#ci.x86_64-linux | jq -cr '.[]' | while read job; do
|
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"
|
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")"
|
ci/push-to-cache.sh "$(nix eval --raw .#ci.x86_64-linux."$job")"
|
||||||
|
echo "::endgroup::"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Building and caching CI derivation"
|
echo "Building and caching CI derivation"
|
||||||
|
Loading…
Reference in New Issue
Block a user