Release All #45
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
name: Release All | |
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: | |
os: [macos-14] | |
qt_ver: [ 6.6.3,6.7.2 ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update brew | |
run: | | |
brew update | |
- name: Install dependencies | |
run: | | |
brew install \ | |
bzip2 \ | |
create-dmg \ | |
hunspell \ | |
libiconv \ | |
libogg \ | |
libvorbis \ | |
libzim \ | |
icu4c \ | |
lzip \ | |
ninja \ | |
opencc \ | |
xapian | |
- name: Install eb | |
run: | | |
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/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: macOS-${{ matrix.os }}-Qt${{ matrix.qt_ver }} | |
if-no-files-found: error | |
retention-days: 7 | |
path: '*.dmg' | |