ci: strip fat qt binaries

This commit is contained in:
Bruno Alexandre Rosa 2025-11-03 17:50:17 -03:00
parent f24c36d6b1
commit 388a4e74ef

View file

@ -308,11 +308,16 @@ jobs:
- name: Install Qt ${{env.QT_VERSION}} - name: Install Qt ${{env.QT_VERSION}}
uses: jurplel/install-qt-action@v4 uses: jurplel/install-qt-action@v4
with: with:
cache: false # qt caches take too much space for macOS (1.1Gi) cache: true # qt caches take too much space for macOS (1.1Gi)
version: ${{env.QT_VERSION}} version: ${{env.QT_VERSION}}
arch: ${{env.QT_ARCH}} arch: ${{env.QT_ARCH}}
modules: ${{env.QT_MODULES}} modules: ${{env.QT_MODULES}}
- name: Strip arch from Qt libraries
run: |
echo "Stripping arch from Qt libraries"
find $RUNNER_WORKSPACE/Qt -type f -exec sh -c 'file -b --mime-type "$0" | grep -q "application/x-mach-binary"' {} \; -exec lipo {} -thin $(uname -m) -output {} \;
- name: Setup vcpkg cache - name: Setup vcpkg cache
id: vcpkg-cache id: vcpkg-cache
uses: TAServers/vcpkg-cache@v3 uses: TAServers/vcpkg-cache@v3