Skip to content

Initial Qt6 port.

Initial Qt6 port. #35

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: macOS Package
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
- name: Build
working-directory: ./
run: |
mkdir build && cd build
cmake ..
cmake --build . -j$(nproc)
cd ..
- 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@v3
with:
name: macOS-Build
path: thplayer-macos.zip