2024-11-19 06:24:16 +00:00
|
|
|
name: Release All
|
2024-10-19 20:01:58 +00:00
|
|
|
env:
|
|
|
|
version: 24.11.0
|
|
|
|
prerelease: ${{ !contains(github.ref_name,'master') }}
|
|
|
|
versionSuffix: ${{ !contains(github.ref_name,'master') && 'alpha' || 'Release' }}
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
|
|
|
- experimental
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- "howto/**"
|
|
|
|
- "*.md"
|
|
|
|
- ".clang-format"
|
|
|
|
jobs:
|
|
|
|
build_macOS:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-11-19 07:25:28 +00:00
|
|
|
os: [macos-14]
|
2024-11-19 07:20:17 +00:00
|
|
|
qt_ver: [ 6.6.3,6.7.2 ]
|
2024-10-19 20:01:58 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2024-11-18 03:07:37 +00:00
|
|
|
- name: Update brew
|
|
|
|
run: |
|
|
|
|
brew update
|
2024-10-19 20:01:58 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
brew install \
|
|
|
|
bzip2 \
|
|
|
|
create-dmg \
|
|
|
|
hunspell \
|
|
|
|
libiconv \
|
|
|
|
libogg \
|
|
|
|
libvorbis \
|
2024-11-18 06:19:27 +00:00
|
|
|
libzim \
|
2024-11-18 07:23:29 +00:00
|
|
|
icu4c \
|
2024-10-19 20:01:58 +00:00
|
|
|
lzip \
|
|
|
|
ninja \
|
|
|
|
opencc \
|
|
|
|
xapian
|
2024-11-18 03:07:37 +00:00
|
|
|
- name: Install eb
|
|
|
|
run: |
|
2024-10-19 20:01:58 +00:00
|
|
|
git clone https://github.com/xiaoyifang/eb.git
|
|
|
|
cd eb && ./configure && make -j 8 && sudo make install && cd ..
|
|
|
|
- uses: jurplel/install-qt-action@v4
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
|
|
|
arch: clang_64
|
|
|
|
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
mkdir build_dir
|
|
|
|
cmake -S . -B build_dir \
|
|
|
|
-G Ninja \
|
|
|
|
-DWITH_FFMPEG_PLAYER=OFF \
|
|
|
|
-DWITH_TTS=OFF \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="12.0"
|
|
|
|
cmake --build build_dir
|
|
|
|
- name: Package
|
|
|
|
run: |
|
|
|
|
cmake --install build_dir/
|
2024-11-19 06:47:26 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: macOS-${{ matrix.os }}-Qt${{ matrix.qt_ver }}
|
|
|
|
if-no-files-found: error
|
|
|
|
retention-days: 7
|
|
|
|
path: '*.dmg'
|
2024-10-19 20:01:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-19 06:21:20 +00:00
|
|
|
|