CI: macOS build #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: macOS Package | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: '6.7.0' | |
modules: 'qtmultimedia' | |
- name: Install Conan | |
id: conan | |
working-directory: ./ | |
shell: bash | |
run: | | |
pip3 install wheel setuptools | |
pip3 install conan --upgrade | |
conan --version | |
conan profile detect | |
- name: Build | |
working-directory: ./ | |
run: | | |
conan install --requires=icu/74.2 --generator CMakeDeps --generator CMakeToolchain --build=missing | |
cmake . --preset conan-default | |
cmake --build --preset conan-release | |
- name: Package | |
id: package | |
working-directory: ./ | |
continue-on-error: true | |
run: | | |
macdeployqt build/thplayer.app | |
zip -r9 --symlinks thplayer-macos.zip thplayer.app | |
- name: Upload | |
if: steps.package.conclusion == 'success' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS-Build | |
path: thplayer-macos.zip |