From 32ff813609444f4bbbe4e536673a6c532b4dc7c1 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 29 Dec 2024 18:25:02 +0800 Subject: [PATCH] chore(CI): macOS build with exiv2 support enabled --- .github/workflows/macos.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 3060c05..668122f 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -14,15 +14,25 @@ jobs: with: version: '6.8.1' modules: 'qtimageformats' - - name: Run a qt project + - name: Install Conan and Dependencies + id: conan + working-directory: ./ + shell: bash run: | - cmake . -Bbuild -DTRANSLATION_RESOURCE_EMBEDDING=ON - cmake --build build + pip3 install wheel setuptools + pip3 install conan --upgrade + conan --version + conan profile detect + conan install --requires=exiv2/0.28.3 --generator CMakeDeps --generator CMakeToolchain --build=missing + - name: Build + run: | + cmake . -DTRANSLATION_RESOURCE_EMBEDDING=ON --preset conan-release + cmake --build --preset conan-release - name: Deploy run: | - macdeployqt ./build/ppic.app -dmg + macdeployqt ./ppic.app -dmg ls - uses: actions/upload-artifact@v4 with: name: "macos-bundle" - path: build/*.dmg + path: "*.dmg"