2022-09-19 12:37:39 +00:00
|
|
|
name: macos-homebrew-PR-check
|
2022-08-06 16:33:10 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- master
|
2024-03-27 07:09:26 +00:00
|
|
|
- experimental
|
2022-08-06 16:33:10 +00:00
|
|
|
- staged
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2022-11-28 13:37:42 +00:00
|
|
|
# - ".github/**"
|
2022-08-06 16:33:10 +00:00
|
|
|
- "howto/**"
|
|
|
|
- "*.md"
|
2023-05-05 07:32:20 +00:00
|
|
|
- "locale/**"
|
2023-05-21 03:58:24 +00:00
|
|
|
- "website/**"
|
2022-08-06 16:33:10 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-12]
|
2024-05-05 12:26:23 +00:00
|
|
|
qt_ver: [6.6.3]
|
2022-08-06 16:33:10 +00:00
|
|
|
qt_arch: [clang_64]
|
|
|
|
env:
|
|
|
|
targetName: GoldenDict
|
|
|
|
steps:
|
2023-09-14 05:46:43 +00:00
|
|
|
|
2022-08-06 16:33:10 +00:00
|
|
|
- name: Install Qt
|
2022-11-28 13:37:42 +00:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2022-08-06 16:33:10 +00:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
|
|
|
arch: ${{ matrix.qt_arch }}
|
2023-06-05 14:05:22 +00:00
|
|
|
|
2023-03-26 03:39:51 +00:00
|
|
|
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtspeech
|
2024-04-05 08:35:50 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-06 16:33:10 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2023-05-01 01:09:19 +00:00
|
|
|
submodules: true
|
2022-08-06 16:33:10 +00:00
|
|
|
- name: Set outputs
|
|
|
|
id: githash
|
|
|
|
run: |
|
2023-08-13 03:57:13 +00:00
|
|
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
2022-08-06 16:33:10 +00:00
|
|
|
|
2023-04-28 01:52:23 +00:00
|
|
|
- name: install deps on macos
|
2022-08-06 16:33:10 +00:00
|
|
|
run: |
|
2023-11-14 05:30:46 +00:00
|
|
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE
|
2023-10-09 14:16:39 +00:00
|
|
|
brew install cmake ninja
|
2022-08-06 16:33:10 +00:00
|
|
|
brew install automake
|
|
|
|
brew install autoconf
|
|
|
|
brew install libtool
|
|
|
|
brew install opencc
|
2023-05-17 23:47:28 +00:00
|
|
|
|
2022-08-06 16:33:10 +00:00
|
|
|
brew install libao
|
|
|
|
brew install libiconv
|
|
|
|
brew install lzo bzip2
|
|
|
|
brew install libogg
|
|
|
|
brew install zstd lzip
|
|
|
|
brew install libvorbis --force
|
|
|
|
brew install hunspell
|
2022-09-08 13:46:17 +00:00
|
|
|
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 ..
|
2023-11-06 23:12:43 +00:00
|
|
|
# brew install xz
|
2022-08-06 16:33:10 +00:00
|
|
|
brew install pkg-config
|
2023-02-01 15:23:23 +00:00
|
|
|
brew install libiconv
|
2023-05-17 14:29:56 +00:00
|
|
|
brew install xapian
|
2023-05-27 04:12:16 +00:00
|
|
|
brew install libzim
|
2022-08-06 16:33:10 +00:00
|
|
|
|
|
|
|
- name: compile
|
|
|
|
run: |
|
2023-09-24 23:46:03 +00:00
|
|
|
qmake CONFIG+=release CONFIG+=no_macos_universal CONFIG+=zim_support CONFIG+=use_iconv CONFIG+=use_xapian CONFIG+=no_ffmpeg_player
|
2022-08-06 16:33:10 +00:00
|
|
|
make
|
|
|
|
|