ci: publish the portable build cache only for selected consumers (#14307)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-11-24 08:34:30 +00:00
1 parent 98beb5424a
commit 2b818e0dbf
3 files changed
+66 -34

No files matched your search

+20 -16
View File
@@ -60,6 +60,23 @@ jobs:
test_shadow_id: ${{ steps.shadow-upload.outputs.artifact-id }}
qualification_run_id: ${{ steps.qualification.outputs.run_id }}
code: ${{ steps.plan.outputs.code }}
build_cache: >-
${{ steps.plan.outputs.runtime == 'true' ||
steps.plan.outputs.apple == 'true' ||
steps.plan.outputs.browser == 'true' ||
steps.plan.outputs.binary_layout == 'true' ||
steps.plan.outputs.evm == 'true' ||
steps.plan.outputs.apk_signature == 'true' ||
steps.plan.outputs.javascript_recovery == 'true' ||
steps.plan.outputs.recorded_crash == 'true' ||
steps.plan.outputs.web_network == 'true' ||
steps.plan.outputs.web_runtime == 'true' ||
steps.plan.outputs.web_source_map == 'true' ||
steps.plan.outputs.agentenv == 'true' ||
steps.plan.outputs.packet_capture == 'true' ||
steps.plan.outputs.signal_recording == 'true' ||
steps.plan.outputs.go_binary == 'true' ||
steps.plan.outputs.ghidra_bridge == 'true' }}
reverse_tools: ${{ steps.plan.outputs.reverse_tools }}
python: ${{ steps.plan.outputs.python }}
packet_capture: ${{ steps.plan.outputs.packet_capture }}
@@ -458,22 +475,7 @@ jobs:
needs: changes
# Reusable provider workflows consume this run's portable build artifact,
# even when a workflow-only edit selects the lane without portable tests.
if: >-
needs.changes.outputs.code == 'true' ||
needs.changes.outputs.browser == 'true' ||
needs.changes.outputs.binary_layout == 'true' ||
needs.changes.outputs.evm == 'true' ||
needs.changes.outputs.apk_signature == 'true' ||
needs.changes.outputs.javascript_recovery == 'true' ||
needs.changes.outputs.recorded_crash == 'true' ||
needs.changes.outputs.web_network == 'true' ||
needs.changes.outputs.web_runtime == 'true' ||
needs.changes.outputs.web_source_map == 'true' ||
needs.changes.outputs.agentenv == 'true' ||
needs.changes.outputs.packet_capture == 'true' ||
needs.changes.outputs.signal_recording == 'true' ||
needs.changes.outputs.go_binary == 'true' ||
needs.changes.outputs.ghidra_bridge == 'true'
if: needs.changes.outputs.code == 'true' || needs.changes.outputs.build_cache == 'true'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
@@ -532,11 +534,13 @@ jobs:
# Native package jobs still run their build and prepack checks; Turbo
# restores matching outputs or rebuilds when their inputs differ.
- name: Stage current portable build task cache
if: needs.changes.outputs.build_cache == 'true'
shell: bash
run: |
# A new Turbo dry run can evict the entries this build just used.
node scripts/ci/portable-build-cache.mjs snapshot .cache/ci-build-plan.json
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: needs.changes.outputs.build_cache == 'true'
with:
name: rea-build-cache
overwrite: true