Publish CUDA preview through Gitea API v1
Linux / verify (pull_request) Successful in 3m19s
Linux / keyless-cuda (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 24s
Linux / linux-static-cli (pull_request) Successful in 6m2s
Linux / release-cli (pull_request) Skipped

This commit is contained in:
Pavlo Ratushnyi
2026-10-06 08:01:06 +02:00
parent 59b30049e3
commit a8fa7e013a
4 changed files with 425 additions and 12 deletions
+7 -9
View File
@@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 150
permissions:
contents: write
releases: write
env:
CUDA_VISIBLE_DEVICES: ''
BUILD_JOBS: '1'
@@ -67,7 +67,7 @@ jobs:
echo "CUDACXX=$RUNNER_TEMP/strata-cuda-toolkit/bin/nvcc" >> "$GITHUB_ENV"
echo "CUDAToolkit_ROOT=$RUNNER_TEMP/strata-cuda-toolkit" >> "$GITHUB_ENV"
echo "STRATA_BUILD_DIR=$RUNNER_TEMP/strata-hosted-cuda-engine" >> "$GITHUB_ENV"
apt-get update && apt-get install -y ca-certificates curl docker.io gh musl-tools binutils python3-numpy time
apt-get update && apt-get install -y ca-certificates curl docker.io musl-tools binutils python3-numpy time
- name: Assemble pinned build-only CUDA components
run: python3 scripts/bootstrap-cuda-toolkit.py --output "$CUDAToolkit_ROOT"
- name: Record actual toolchain
@@ -132,17 +132,15 @@ jobs:
(cd "$package" && sha256sum runtime-image.tar IMAGE-PROVENANCE.json CUDA-TOOLCHAIN.json CUDA-LICENSES.tar > IMAGE-SHA256SUMS)
- name: Publish private CUDA preview release
env:
GH_TOKEN: ${{ github.token }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITHUB_API_URL: ${{ github.api_url }}
run: |
# Gitea exposes an internal http://gitea:3000 URL to job containers;
# gh interprets GH_HOST as a public HTTPS hostname, not that service alias.
export GH_HOST=git.vezha.io
tag="cuda-preview-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
gh release create "$tag" "$RUNNER_TEMP/strata-hosted-cuda-package/"* \
--target "$GITHUB_SHA" --repo "$GITHUB_REPOSITORY" \
python3 scripts/publish-gitea-release.py \
--tag "$tag" --target "$GITHUB_SHA" \
--title "CUDA build preview ${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}" \
--notes 'Actual CUDA compilation and packaging from this commit. Built in a GPU-hidden Docker container. This is not driver, inference, model-quality or performance qualification.' \
--prerelease
--directory "$RUNNER_TEMP/strata-hosted-cuda-package"
- name: Remove privately published package copy
run: rm -rf -- "$RUNNER_TEMP/strata-hosted-cuda-package"
- name: Remove owned intermediate image and build files