mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
3858932ec4
* feat!: add libzim dependency * 🎨 apply clang-format changes * action: add libzim dependency to action * feat!: change dependency folder * action: add zim support * feat!: add libzim support * action: fix sonarcloud check * doc: add libzim readme * action: cmake build * action: cmake check * fix: code smell * action: cmake check * action: cmake on Macos * action: cmake on Macos * feat: use libzim to read title and description * 🎨 apply clang-format changes * feat: split zim file support * feat: loadArticle refactor * 🎨 apply clang-format changes * 🎨 apply clang-format changes * feat: update library and goldendict.pro * 🎨 apply clang-format changes * fix:word count * 🎨 apply clang-format changes * fix: video src url subsititue * 🎨 apply clang-format changes * zim: headword is not usually a valid it is from title and url. * fix: remove nested try catch * zim: fix resource loading issue. * 🎨 apply clang-format changes * action: remove libao * zim: process url some old zim dictionary url does not contain namespace such as /C/url make the old and new zim dictionary's url consistent without the leading ../C/ etc. * 🎨 apply clang-format changes * zim: process url remove leading dot and slash such as ../-/assets ,remove ../ * 🎨 apply clang-format changes * zim: remove resourceIndex creation use libzim to read the resource directly. * zim: only iterate all the articles * 🎨 apply clang-format changes * fix: code smell * 🎨 apply clang-format changes * zim: refactor method to convert url to wstring * 🎨 apply clang-format changes * fix:code smell * 🎨 apply clang-format changes * zim: update windows dependencies * zim: add mutex lock * 🎨 apply clang-format changes * fix: code smell * 🎨 apply clang-format changes --------- Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
name: macos-homebrew-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"
|
|
- "locale/**"
|
|
- "website/**"
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-12]
|
|
qt_ver: [6.4.3]
|
|
qt_arch: [clang_64]
|
|
env:
|
|
targetName: GoldenDict
|
|
steps:
|
|
# - name: prepare env
|
|
# run: |
|
|
# cd /opt
|
|
# mkdir homebrew
|
|
# curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
|
|
# export PATH=$PATH:/opt/homebrew/bin
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
version: ${{ matrix.qt_ver }}
|
|
arch: ${{ matrix.qt_arch }}
|
|
cached: 'false'
|
|
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtspeech
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 1
|
|
submodules: true
|
|
- name: Set outputs
|
|
id: githash
|
|
run: |
|
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
|
|
|
- name: install deps on macos
|
|
run: |
|
|
brew install pcre2 harfbuzz freetype
|
|
brew install cmake ninja python
|
|
brew install automake
|
|
brew install autoconf
|
|
brew install libtool
|
|
brew install opencc
|
|
|
|
brew install speex
|
|
brew tap homebrew-ffmpeg/ffmpeg
|
|
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-speex
|
|
brew install libao
|
|
brew install libiconv
|
|
brew install lzo bzip2
|
|
brew install libogg
|
|
brew install zstd lzip
|
|
brew install libvorbis --force
|
|
brew install hunspell
|
|
wget ftp://ftp.sra.co.jp/pub/misc/eb/eb-4.4.3.tar.bz2
|
|
tar xvjf eb-4.4.3.tar.bz2
|
|
cd eb-4.4.3 && ./configure && make -j 8 && sudo make install && cd ..
|
|
#brew install qt # or use official offline installer
|
|
brew install xz lzo
|
|
brew install pkg-config
|
|
brew install libiconv
|
|
brew install xapian
|
|
brew install libzim
|
|
|
|
- name: compile
|
|
run: |
|
|
qmake CONFIG+=release CONFIG+=no_macos_universal CONFIG+=zim_support CONFIG+=use_iconv CONFIG+=use_xapian
|
|
make
|
|
|