Make macOS packaged cache key more stable

This commit is contained in:
Ilya Fedin
2026-06-29 04:04:02 +04:00
committed by John Preston
parent 4943c41f77
commit 3447020b41

View File

@@ -71,14 +71,15 @@ jobs:
- name: First set up. - name: First set up.
run: | run: |
libs="ada-url ffmpeg@6 jpeg-xl libavif libheif minizip openal-soft openh264 openssl opus qtbase qtimageformats qtshadertools qtsvg xz"
brew update brew update
brew upgrade || true brew upgrade || true
brew install ada-url autoconf automake boost cmake ffmpeg@6 jpeg-xl libavif libheif libtool minizip ninja openal-soft openh264 openssl opus pkg-config python qtbase qtimageformats qtshadertools qtsvg xz brew install autoconf automake boost cmake libtool ninja pkg-config python $libs
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo sed -i '' '/CMAKE_${lang}_FLAGS_DEBUG_INIT/s/ -g//' /opt/homebrew/share/cmake/Modules/Compiler/GNU.cmake sudo sed -i '' '/CMAKE_${lang}_FLAGS_DEBUG_INIT/s/ -g//' /opt/homebrew/share/cmake/Modules/Compiler/GNU.cmake
xcodebuild -version > CACHE_KEY.txt xcodebuild -version > CACHE_KEY.txt
brew list --versions >> CACHE_KEY.txt brew list --versions $libs >> CACHE_KEY.txt
echo $MANUAL_CACHING >> CACHE_KEY.txt echo $MANUAL_CACHING >> CACHE_KEY.txt
echo "$GITHUB_WORKSPACE" >> CACHE_KEY.txt echo "$GITHUB_WORKSPACE" >> CACHE_KEY.txt
if [ "$AUTO_CACHING" = "1" ]; then if [ "$AUTO_CACHING" = "1" ]; then