From 388a4e74effa958705d9346e1621a21936051f43 Mon Sep 17 00:00:00 2001 From: Bruno Alexandre Rosa <1791393+brunoalr@users.noreply.github.com> Date: Mon, 3 Nov 2025 17:50:17 -0300 Subject: [PATCH] ci: strip fat qt binaries --- .github/workflows/desktop-build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 15410a384..44b901073 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -308,11 +308,16 @@ jobs: - name: Install Qt ${{env.QT_VERSION}} uses: jurplel/install-qt-action@v4 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}} arch: ${{env.QT_ARCH}} 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 id: vcpkg-cache uses: TAServers/vcpkg-cache@v3