From 73f7e451c91500bc689c28ae03ab07d33a0e3adf Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 24 Sep 2026 16:26:43 +0800 Subject: [PATCH] ci: authenticate WarpCache and install wget in the openKylin container A job container does not inherit the runner environment, so every cache step logged "Authentication token is invalid" and the vcpkg cache was never restored or saved. Pass WARPBUILD_RUNNER_VERIFICATION_TOKEN into the container explicitly (WarpBuilds/cache README: "Running inside a container") and install wget there, which the action uses to download cache segments. --- .github/workflows/ci.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e7228580..4608b8330 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -583,6 +583,13 @@ jobs: # parallel — 2 GiB used to run dry mid-suite (observed as an # intermittent SIGSEGV in the oak-render tests), so give it headroom. options: --shm-size=8g + # WarpCache authenticates with the runner's verification token, and + # a container does not inherit the runner's environment: pass it in + # explicitly (WarpBuilds/cache README, "Running inside a + # container"). Without it every cache step warns "Authentication + # token is invalid" and the cache is silently not restored/saved. + env: + WARPBUILD_RUNNER_VERIFICATION_TOKEN: ${{ env.WARPBUILD_RUNNER_VERIFICATION_TOKEN }} strategy: fail-fast: false matrix: @@ -598,9 +605,12 @@ jobs: timeout-minutes: 90 steps: # The image ships neither git nor curl (checkout and vcpkg need - # both). First step of the job, so the package lists are still fresh. - - name: Install git and curl - run: apt-get update && apt-get install -y git curl ca-certificates + # both); wget is what WarpCache uses to download cache segments + # inside a container (its README requires it), and without it the + # cache steps fail. First step of the job, so the package lists are + # still fresh. + - name: Install git, curl and wget + run: apt-get update && apt-get install -y git curl ca-certificates wget - name: Checkout uses: actions/checkout@v7