disable magic cache

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman 2025-11-11 13:53:01 -05:00
parent 42c7848016
commit 800c345b6b

View File

@ -70,7 +70,9 @@ jobs:
Build-Snapshot-Artifacts: Build-Snapshot-Artifacts:
name: "Build snapshot artifacts" name: "Build snapshot artifacts"
# Runner definition: workflows/.github/runs-on.yml # Runner definition: workflows/.github/runs-on.yml
runs-on: runs-on=${{ github.run_id }}/runner=build # note: we explicitly do not use the magic cache feature (https://runs-on.com/caching/magic-cache/)
# since it is not compatible with artifact uploads/downloads in the same workflow (https://runs-on.com/caching/magic-cache/#actionsupload-artifact-compatibility)
runs-on: runs-on=${{ github.run_id }}/runner=build/extras=
steps: steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
with: with:
@ -88,69 +90,41 @@ jobs:
run: make snapshot-smoke-test run: make snapshot-smoke-test
# upload each platform artifact individually so downstream jobs can download only what they need # upload each platform artifact individually so downstream jobs can download only what they need
# using explicit upload steps instead of programmatic API for runs-on compatibility - run: npm install @actions/artifact@2.2.2
- name: Upload Linux amd64 artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0
with:
name: linux-build_linux_amd64_v1
path: snapshot/linux-build_linux_amd64_v1
retention-days: 30
- name: Upload Linux arm64 artifact - name: Upload individual platform artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0 uses: actions/github-script@v8
env:
ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY: 10
with: with:
name: linux-build_linux_arm64_v8.0 script: |
path: snapshot/linux-build_linux_arm64_v8.0 const { readdirSync } = require('fs')
retention-days: 30 const { DefaultArtifactClient } = require('@actions/artifact')
const artifact = new DefaultArtifactClient()
- name: Upload Linux ppc64le artifact const ls = d => readdirSync(d, { withFileTypes: true })
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0 const baseDir = "./snapshot"
with: const dirs = ls(baseDir).filter(f => f.isDirectory()).map(f => f.name)
name: linux-build_linux_ppc64le_power8 const uploads = []
path: snapshot/linux-build_linux_ppc64le_power8 for (const dir of dirs) {
retention-days: 30 // uploadArtifact returns Promise<{id, size}>
uploads.push(artifact.uploadArtifact(
- name: Upload Linux s390x artifact // name of the archive:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0 `${dir}`,
with: // array of all files to include:
name: linux-build_linux_s390x ls(`${baseDir}/${dir}`).map(f => `${baseDir}/${dir}/${f.name}`),
path: snapshot/linux-build_linux_s390x // base directory to trim from entries:
retention-days: 30 `${baseDir}/${dir}`,
{ retentionDays: 30 }
- name: Upload macOS Intel artifact ))
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0 }
with: // wait for all uploads to finish
name: darwin-build_darwin_amd64_v1 try {
path: snapshot/darwin-build_darwin_amd64_v1 const results = await Promise.all(uploads)
retention-days: 30 console.log(`Successfully uploaded ${results.length} platform artifacts`)
} catch (error) {
- name: Upload macOS Apple Silicon artifact console.error('Upload failed:', error)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0 throw error
with: }
name: darwin-build_darwin_arm64_v8.0
path: snapshot/darwin-build_darwin_arm64_v8.0
retention-days: 30
- name: Upload Windows amd64 artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0
with:
name: windows-build_windows_amd64_v1
path: snapshot/windows-build_windows_amd64_v1
retention-days: 30
- name: Upload Windows arm64 artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0
with:
name: windows-build_windows_arm64_v8.0
path: snapshot/windows-build_windows_arm64_v8.0
retention-days: 30
- name: Upload Homebrew artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.0
with:
name: homebrew
path: snapshot/homebrew
retention-days: 30
Acceptance-Linux: Acceptance-Linux:
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline # Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline