chore(CI): macOS build with exiv2 support enabled

This commit is contained in:
Gary Wang 2024-12-29 18:25:02 +08:00
parent 2de9ff810d
commit 32ff813609

View File

@ -14,15 +14,25 @@ jobs:
with: with:
version: '6.8.1' version: '6.8.1'
modules: 'qtimageformats' modules: 'qtimageformats'
- name: Run a qt project - name: Install Conan and Dependencies
id: conan
working-directory: ./
shell: bash
run: | run: |
cmake . -Bbuild -DTRANSLATION_RESOURCE_EMBEDDING=ON pip3 install wheel setuptools
cmake --build build 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 - name: Deploy
run: | run: |
macdeployqt ./build/ppic.app -dmg macdeployqt ./ppic.app -dmg
ls ls
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: "macos-bundle" name: "macos-bundle"
path: build/*.dmg path: "*.dmg"