All checks were successful
Flake checks / Check (pull_request) Successful in 18m48s
ci: tests/keycloak: bump cores to 16, memory to 16384
24 lines
1 KiB
YAML
24 lines
1 KiB
YAML
name: Flake checks
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
Check:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Check formatting
|
|
run: |
|
|
nix --accept-flake-config --access-tokens '' develop --command treefmt --ci
|
|
|
|
- name: Run flake checks
|
|
run: |
|
|
set -exuo pipefail
|
|
# Prevent cache garbage collection by creating GC roots
|
|
mkdir -p /var/lib/gitea-runner/tankstelle/.local/state/nix/results
|
|
|
|
sed -i 's/virtualisation.cores .*/virtualisation.cores = 16;/' tests/keycloak.nix
|
|
sed -i 's/virtualisation.memorySize .*/virtualisation.memorySize = 16384;/' tests/keycloak.nix
|
|
# 1 eval-worker needs about 13GB of memory
|
|
nix --accept-flake-config --access-tokens '' develop --command nix-fast-build --no-nom --skip-cached --systems "x86_64-linux" --max-jobs 10 --eval-workers 2 --out-link /var/lib/gitea-runner/tankstelle/.local/state/nix/results/nix-fast-build
|