Skip to content

CI: macOS build

CI: macOS build #41

Workflow file for this run

# 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 Conan
id: conan
working-directory: ./
shell: bash
run: |
pip3 install wheel setuptools
pip3 install conan --upgrade
conan --version
conan profile detect
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.7.0'
modules: 'qtmultimedia'
- name: Build
working-directory: ./
run: |
conan install --requires=icu/74.2 --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