From a33a2c97a373ebe200058da7fc1a74948c9c32c3 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 26 Apr 2026 21:06:29 -0700 Subject: [PATCH] ci(testbox): save build artifact cache before wait --- .github/workflows/ci-build-artifacts-testbox.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build-artifacts-testbox.yml b/.github/workflows/ci-build-artifacts-testbox.yml index 350fb9c837e..55027c00406 100644 --- a/.github/workflows/ci-build-artifacts-testbox.yml +++ b/.github/workflows/ci-build-artifacts-testbox.yml @@ -135,7 +135,7 @@ jobs: - name: Restore dist build cache id: dist-cache - uses: actions/cache@v5 + uses: actions/cache/restore@v5 with: path: | .artifacts/build-all-cache/ @@ -166,6 +166,16 @@ jobs: test -f dist/build-info.json test -f dist/control-ui/index.html + - name: Save dist build cache + if: steps.dist-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v5 + with: + path: | + .artifacts/build-all-cache/ + dist/ + dist-runtime/ + key: ${{ runner.os }}-dist-build-${{ github.sha }} + - name: Prepare Testbox shell shell: bash run: |