ci: clarify embedded mpv cache inputs

This commit is contained in:
4gray committed 2026-05-22 02:16:32 +03:00
1 parent 0b19155469
commit f3c0cd3820
1 file changed
+4 -1
+4 -1
View File
@@ -101,6 +101,9 @@ jobs:
safe_deployment_target="$(printf '%s' "${deployment_target}" | tr -c 'A-Za-z0-9_.-' '-')" safe_deployment_target="$(printf '%s' "${deployment_target}" | tr -c 'A-Za-z0-9_.-' '-')"
xcode_version="$(xcodebuild -version | tr '\n' ' ' | sed 's/[[:space:]]*$//')" xcode_version="$(xcodebuild -version | tr '\n' ' ' | sed 's/[[:space:]]*$//')"
xcode_hash="$(printf '%s' "${xcode_version}" | shasum -a 256 | awk '{print $1}')" xcode_hash="$(printf '%s' "${xcode_version}" | shasum -a 256 | awk '{print $1}')"
# Runtime source pins, source URLs, git tags, and build flags
# live in build-macos-runtime.mjs; staging layout and manifest
# normalization live in stage-macos-runtime.mjs.
source_hash="$( source_hash="$(
shasum -a 256 \ shasum -a 256 \
tools/embedded-mpv/build-macos-runtime.mjs \ tools/embedded-mpv/build-macos-runtime.mjs \
@@ -129,7 +132,7 @@ jobs:
vendor/embedded-mpv/darwin-${{ matrix.arch }}/runtime-manifest.json vendor/embedded-mpv/darwin-${{ matrix.arch }}/runtime-manifest.json
key: ${{ steps.embedded-mpv-runtime-cache-key.outputs.key }} key: ${{ steps.embedded-mpv-runtime-cache-key.outputs.key }}
- name: Clear non-exact embedded MPV runtime cache restore - name: Clear stale embedded MPV runtime files
# TEMPORARY ARTIFACT TEST: remove `|| github.event_name == 'pull_request' || github.ref == 'refs/heads/master'` # TEMPORARY ARTIFACT TEST: remove `|| github.event_name == 'pull_request' || github.ref == 'refs/heads/master'`
# after the macOS Embedded MPV artifacts are built and manually tested. # after the macOS Embedded MPV artifacts are built and manually tested.
if: matrix.os == 'macos' && !startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'pull_request' || github.ref == 'refs/heads/master') && steps.embedded-mpv-runtime-cache.outputs.cache-hit != 'true' if: matrix.os == 'macos' && !startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'pull_request' || github.ref == 'refs/heads/master') && steps.embedded-mpv-runtime-cache.outputs.cache-hit != 'true'