pineapple-pictures/.github/workflows/macos.yml

39 lines
971 B
YAML
Raw Normal View History

2020-06-18 23:06:15 +08:00
name: macOS CI
2024-12-02 00:25:48 +08:00
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Qt
2024-12-02 00:25:48 +08:00
uses: jurplel/install-qt-action@v4
2021-03-09 21:41:51 +08:00
with:
2024-12-02 00:25:48 +08:00
version: '6.8.1'
modules: 'qtimageformats'
- name: Install Conan and Dependencies
id: conan
working-directory: ./
shell: bash
run: |
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
2024-12-02 00:25:48 +08:00
- name: Deploy
run: |
macdeployqt ./ppic.app -dmg
2024-12-02 00:25:48 +08:00
ls
- uses: actions/upload-artifact@v4
with:
name: "macos-bundle"
path: "*.dmg"