-
Notifications
You must be signed in to change notification settings - Fork 22
81 lines (67 loc) · 1.75 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build CI
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install qt6-base-dev libqt6svg6-dev libmpv-dev libsqlite3-dev libmecab-dev mecab-ipadic libjson-c-dev libzip-dev mesa-common-dev python3-dev
- 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-qt6
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 qt6 mpv mecab mecab-ipadic json-c libzip python || true
- name: CMake Build
run: |
mkdir build
cd build
cmake .. -DOCR_SUPPORT=ON -DMEMENTO_COMPILER_FLAGS=-Werror
cmake --build . -j $(nproc)