mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
cd40bfa7d3
* Qt already have built-in support for them * remove qmake option no_extra_tiff_handler
69 lines
2 KiB
YAML
69 lines
2 KiB
YAML
name: macos-PR-check
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- master
|
|
- staged
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
# - ".github/**"
|
|
- "howto/**"
|
|
- "*.md"
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-11.0]
|
|
qt_ver: [5.15.2,6.4.3]
|
|
qt_arch: [clang_64]
|
|
|
|
steps:
|
|
# macos 11.0 默认环境变了,要指定
|
|
- name: prepare env
|
|
if: ${{ matrix.os == 'macos-11.0' }}
|
|
run: |
|
|
softwareupdate --all --install --force
|
|
sudo xcode-select --print-path
|
|
sudo xcode-select --switch /Library/Developer/CommandLineTools
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.9'
|
|
- name: Install Qt
|
|
if: ${{ matrix.qt_ver == '5.15.2' }}
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
version: ${{ matrix.qt_ver }}
|
|
cached: 'false'
|
|
modules: qtwebengine
|
|
setup-python: 'false'
|
|
|
|
- name: Install Qt
|
|
if: ${{ matrix.qt_ver != '5.15.2' }}
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
version: ${{ matrix.qt_ver }}
|
|
arch: ${{ matrix.qt_arch }}
|
|
cached: 'false'
|
|
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech
|
|
setup-python: 'false'
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: build macos
|
|
run: |
|
|
brew uninstall opencc hunspell ffmpeg@5 ffmpeg@4 xz lzo libogg libvorbis zstd || true
|
|
brew install create-dmg
|
|
qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support #QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"
|
|
make -j$(nproc)
|