Skip to content

.github/workflows/build: fix macos ci build failing to find qt5 #254

.github/workflows/build: fix macos ci build failing to find qt5

.github/workflows/build: fix macos ci build failing to find qt5 #254

Workflow file for this run

name: Build CI
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
sudo apt-get update
sudo apt-get install qt515base qt515x11extras qt515svg libmpv-dev libsqlite3-dev libmecab-dev mecab-ipadic libjson-c-dev libzip-dev mesa-common-dev python3-dev
/opt/qt515/bin/qt515-env.sh
- name: CMake Build
run: |
mkdir build
cd build
cmake .. -DOCR_SUPPORT=ON -DMEMENTO_COMPILER_FLAGS=-Werror
cmake --build . -j $(nproc)
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-sqlite3
mingw-w64-x86_64-qt5
mingw-w64-x86_64-mpv
mingw-w64-x86_64-mecab
mingw-w64-x86_64-json-c
mingw-w64-x86_64-libzip
mingw-w64-x86_64-python
- uses: actions/checkout@v4
- name: CMake Build
run: |
mkdir build
cd build
cmake .. -DOCR_SUPPORT=ON -DMEMENTO_COMPILER_FLAGS=-Werror
cmake --build . -j $(nproc)
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
brew update || true
brew install cmake sqlite3 qt@5 mpv mecab mecab-ipadic json-c libzip python || true
- name: CMake Build
run: |
mkdir build
cd build
cmake .. -DQt5_DIR='/opt/homebrew/opt/qt5/lib/cmake/Qt5' -DOCR_SUPPORT=ON -DMEMENTO_COMPILER_FLAGS=-Werror
cmake --build . -j $(nproc)