ci: isolate hosted CUDA build metadata output
Linux / verify (pull_request) Successful in 3m2s
Linux / keyless-cuda (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 17s
Linux / linux-static-cli (pull_request) Successful in 6m16s
Linux / release-cli (pull_request) Skipped

This commit is contained in:
Pavlo Ratushnyi
2026-10-06 04:23:48 +02:00
parent f245abc532
commit be8f66f961
+3 -3
View File
@@ -88,7 +88,7 @@ jobs:
--toolkit "$CUDAToolkit_ROOT" \
--build-dir "$RUNNER_TEMP/strata-hosted-cuda-build" \
--output "$STRATA_BUILD_DIR/strata" \
--metadata "$RUNNER_TEMP/CUDA-BUILDER.json" \
--metadata "$RUNNER_TEMP/strata-hosted-cuda-metadata/CUDA-BUILDER.json" \
--image-tag "${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
- name: Install pinned Rust and musl target
run: |
@@ -119,7 +119,7 @@ jobs:
image="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["image"])' "$RUNNER_TEMP/strata-hosted-image.json")"
docker save --output "$package/runtime-image.tar" "$image"
cp "$RUNNER_TEMP/strata-hosted-image.json" "$package/IMAGE-PROVENANCE.json"
python3 - "$RUNNER_TEMP/CUDA-TOOLCHAIN.json" "$RUNNER_TEMP/CUDA-BUILDER.json" "$package/CUDA-TOOLCHAIN.json" <<'PYTOOL'
python3 - "$RUNNER_TEMP/CUDA-TOOLCHAIN.json" "$RUNNER_TEMP/strata-hosted-cuda-metadata/CUDA-BUILDER.json" "$package/CUDA-TOOLCHAIN.json" <<'PYTOOL'
import json, sys
from pathlib import Path
bootstrap=json.loads(Path(sys.argv[1]).read_text())
@@ -157,7 +157,7 @@ jobs:
docker volume ls -q --filter "label=$builder_label" | xargs -r docker volume rm --force || true
docker image ls -q --filter "label=$builder_label" | sort -u | xargs -r docker image rm || true
fi
rm -rf -- "$RUNNER_TEMP/strata-cuda-toolkit" "$RUNNER_TEMP/strata-hosted-cuda-engine" "$RUNNER_TEMP/strata-hosted-cuda-build" "$RUNNER_TEMP/strata-hosted-package-build"
rm -rf -- "$RUNNER_TEMP/strata-cuda-toolkit" "$RUNNER_TEMP/strata-hosted-cuda-engine" "$RUNNER_TEMP/strata-hosted-cuda-build" "$RUNNER_TEMP/strata-hosted-cuda-metadata" "$RUNNER_TEMP/strata-hosted-package-build"
linux-static-cli:
needs: verify