goldendict-ng/.github/workflows/Release-all.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
2 KiB
YAML
Raw Normal View History

2024-11-19 06:24:16 +00:00
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:
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 ]
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/
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-11-19 06:21:20 +00:00