1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

macOS CI: add Homebrew and Qt caches

This commit is contained in:
nastys 2023-07-09 23:19:37 +02:00 committed by Megamouse
parent bff6e0d277
commit ed75bab7b2
2 changed files with 18 additions and 7 deletions

View File

@ -1,5 +1,6 @@
#!/bin/sh -ex #!/bin/sh -ex
export HOMEBREW_NO_AUTO_UPDATE=1
brew install -f --overwrite nasm ninja git p7zip create-dmg ccache pipenv brew install -f --overwrite nasm ninja git p7zip create-dmg ccache pipenv
#/usr/sbin/softwareupdate --install-rosetta --agree-to-license #/usr/sbin/softwareupdate --install-rosetta --agree-to-license
@ -27,12 +28,18 @@ export WORKDIR;
WORKDIR="$(pwd)" WORKDIR="$(pwd)"
# Get Qt # Get Qt
git clone https://github.com/engnr/qt-downloader.git if [ ! -d "/tmp/Qt/5.15.2" ]; then
cd qt-downloader mkdir -p "/tmp/Qt"
git checkout f52efee0f18668c6d6de2dec0234b8c4bc54c597 git clone https://github.com/engnr/qt-downloader.git
"/opt/homebrew/bin/pipenv" run pip3 install py7zr requests semantic_version lxml cd qt-downloader
"/opt/homebrew/bin/pipenv" run ./qt-downloader macos desktop 5.15.2 clang_64 --opensource git checkout f52efee0f18668c6d6de2dec0234b8c4bc54c597
cd .. cd "/tmp/Qt"
"/opt/homebrew/bin/pipenv" run pip3 install py7zr requests semantic_version lxml
"/opt/homebrew/bin/pipenv" run "$WORKDIR/qt-downloader/qt-downloader" macos desktop 5.15.2 clang_64 --opensource
fi
cd "$WORKDIR"
ditto "/tmp/Qt/5.15.2" "qt-downloader/5.15.2"
export Qt5_DIR="$WORKDIR/qt-downloader/5.15.2/clang_64/lib/cmake/Qt5" export Qt5_DIR="$WORKDIR/qt-downloader/5.15.2/clang_64/lib/cmake/Qt5"
export SDL2_DIR="$BREW_X64_PATH/opt/sdl2/lib/cmake/SDL2" export SDL2_DIR="$BREW_X64_PATH/opt/sdl2/lib/cmake/SDL2"

View File

@ -121,12 +121,16 @@ freebsd_task:
macos_task: macos_task:
timeout_in: 12000m timeout_in: 12000m
homebrew_cache:
folder: /Users/admin/Library/Caches/Homebrew
qt_cache:
folder: /tmp/Qt
ccache_cache: ccache_cache:
folder: /tmp/ccache_dir folder: /tmp/ccache_dir
matrix: matrix:
- name: Cirrus macOS - name: Cirrus macOS
macos_instance: macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:14 image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
mac_script: mac_script:
- mkdir artifacts - mkdir artifacts
- chmod +x ".ci/build-mac.sh" - chmod +x ".ci/build-mac.sh"