@@ -57,10 +57,13 @@ macos-native-x86_64:
5757 - name : Install Homebrew packages
5858 env :
5959 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK : 1
60+ HOMEBREW_NO_AUTO_UPDATE : 1
6061 run : |
6162 # A workaround for "The `brew link` step did not complete successfully" error.
6263 brew install python@3 || brew link --overwrite python@3
6364 brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
65+ # Ensure Qt5 is properly linked
66+ brew link --force qt@5
6467
6568 - name : Set Ccache directory
6669 run : echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
@@ -115,6 +118,10 @@ macos-native-x86_64:
115118
116119 - name : Configure and Build
117120 run : |
121+ # Set Qt5 paths for macOS
122+ export Qt5_DIR="$(brew --prefix qt@5)"
123+ export PATH="$Qt5_DIR/bin:$PATH"
124+ export PKG_CONFIG_PATH="$Qt5_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
118125 ./autogen.sh
119126 CONFIG_SITE=$PWD/depends/x86_64-apple-darwin/share/config.site ./configure --with-gui=yes --enable-reduce-exports
120127 if [ "${{ steps.build-cache.outputs.cache-hit }}" != "true" ]; then
@@ -144,6 +151,16 @@ macos-native-x86_64:
144151 # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
145152 key : ${{ github.job }}-ccache-${{ github.run_id }}
146153
154+ - name : Save Homebrew cache
155+ uses : actions/cache/save@v3
156+ if : steps.brew-cache.outputs.cache-hit != 'true'
157+ with :
158+ path : |
159+ ~/Library/Caches/Homebrew
160+ /usr/local/Cellar
161+ /usr/local/opt
162+ key : ${{ github.job }}-brew-${{ hashFiles('.github/workflows/ci.yml') }}
163+
147164 macos-native-arm64 :
148165 name : ' macOS 14 native, ARM64, Qt GUI, with depends, unit tests, functional tests'
149166 # Use latest M1 runner
@@ -176,10 +193,13 @@ macos-native-x86_64:
176193 - name : Install Homebrew packages
177194 env :
178195 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK : 1
196+ HOMEBREW_NO_AUTO_UPDATE : 1
179197 run : |
180198 # A workaround for "The `brew link` step did not complete successfully" error.
181199 brew install python@3 || brew link --overwrite python@3
182200 brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
201+ # Ensure Qt5 is properly linked
202+ brew link --force qt@5
183203
184204 - name : Set Ccache directory
185205 run : echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
@@ -234,6 +254,10 @@ macos-native-x86_64:
234254
235255 - name : Configure and Build
236256 run : |
257+ # Set Qt5 paths for macOS
258+ export Qt5_DIR="$(brew --prefix qt@5)"
259+ export PATH="$Qt5_DIR/bin:$PATH"
260+ export PKG_CONFIG_PATH="$Qt5_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
237261 ./autogen.sh
238262 CONFIG_SITE=$PWD/depends/arm64-apple-darwin/share/config.site ./configure --with-gui=yes --enable-reduce-exports
239263 if [ "${{ steps.build-cache.outputs.cache-hit }}" != "true" ]; then
@@ -263,6 +287,16 @@ macos-native-x86_64:
263287 # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
264288 key : ${{ github.job }}-ccache-${{ github.run_id }}
265289
290+ - name : Save Homebrew cache
291+ uses : actions/cache/save@v3
292+ if : steps.brew-cache.outputs.cache-hit != 'true'
293+ with :
294+ path : |
295+ ~/Library/Caches/Homebrew
296+ /opt/homebrew/Cellar
297+ /opt/homebrew/opt
298+ key : ${{ github.job }}-brew-${{ hashFiles('.github/workflows/ci.yml') }}
299+
266300 linux-native :
267301 name : ' Ubuntu 22.04 native, Qt GUI, with depends, unit tests, functional tests'
268302 runs-on : ubuntu-22.04
0 commit comments