4444 id : source-hash
4545 run : |
4646 set -euo pipefail
47- echo "value=${{ hashFiles('apple/runner/**', 'apple/snapshot-presentation/**', 'scripts/build-xcuitest-apple.sh', 'scripts/swift-toolchain-tmpdir.ts', 'scripts/patch-xcuitest-runner-icon.ts', 'scripts/ write-xcuitest-cache-metadata.mjs', '.github/actions/setup-apple-runner-build/action.yml') }}" >> "$GITHUB_OUTPUT"
47+ echo "value=${{ hashFiles('apple/runner/**', 'apple/snapshot-presentation/**', 'scripts/build-xcuitest-apple.sh', 'scripts/swift-toolchain-tmpdir.ts', 'scripts/write-xcuitest-cache-metadata.mjs', '.github/actions/setup-apple-runner-build/action.yml') }}" >> "$GITHUB_OUTPUT"
4848 shell : bash
4949
5050 - name : Resolve Apple runner build variant
9090 AGENT_DEVICE_IOS_RUNNER_DERIVED_PATH : ${{ inputs.derived-path }}
9191 AGENT_DEVICE_XCUITEST_PLATFORM : ${{ inputs.xcuitest-platform }}
9292 AGENT_DEVICE_XCUITEST_DESTINATION : ${{ inputs.xcuitest-destination }}
93+ AGENT_DEVICE_XCUITEST_SKIP_ICON_PATCH : ' 1'
9394
9495 - name : Save Apple runner build cache
9596 if : steps.restore-runner-build.outputs.cache-hit != 'true'
9899 path : ${{ inputs.derived-path }}
99100 key : ${{ steps.restore-runner-build.outputs.cache-primary-key }}
100101
102+ - name : Patch XCTest runner icon
103+ shell : bash
104+ run : node --experimental-strip-types scripts/patch-xcuitest-runner-icon.ts "${{ inputs.derived-path }}"
105+
101106 - name : Report Apple runner build cache
102107 env :
103108 CACHE_HIT : ${{ steps.restore-runner-build.outputs.cache-hit }}
@@ -106,9 +111,9 @@ runs:
106111 run : |
107112 set -euo pipefail
108113 if [ "$CACHE_HIT" = 'true' ]; then
109- RESULT='restored exact prebuilt runner ; compilation skipped'
114+ RESULT='restored native build ; compilation skipped; icon patch applied '
110115 else
111- RESULT='cache miss; built runner and attempted cache save '
116+ RESULT='cache miss; built and cached native runner; icon patch applied '
112117 fi
113118 {
114119 printf '### Apple runner cache (%s)\n\n' "$BUILD_GATE"
0 commit comments