-
-
Notifications
You must be signed in to change notification settings - Fork 81
171 lines (159 loc) · 6.51 KB
/
build-msys2.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Build chiaki-ng msys2 Windows
on:
workflow_dispatch:
jobs:
build-windows_x64-msys2:
name: Build windows msys2 version
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Disable autocrlf
shell: pwsh
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: git
pacboy: >-
ca-certificates:p
cc:p
cmake:p
curl:p
diffutils:p
fast_float:p
fftw:p
hidapi:p
json-c:p
lcms2:p
libdovi:p
libplacebo:p
meson:p
miniupnpc:p
nasm:p
ninja:p
openssl:p
opus:p
pkgconf:p
protobuf-c:p
python:p
python-glad:p
python-jinja:p
python-pip:p
qt5-declarative:p
qt6-base:p
qt6-declarative:p
qt6-svg:p
SDL2:p
shaderc:p
speexdsp:p
spirv-cross:p
vulkan:p
vulkan-headers:p
- name: Install python protobuf and zip
run: |
pip install protobuf
pacman -S git make unzip --noconfirm
- name: Build libbplacebo
run: |
scripts/build-libplacebo-windows.sh
- name: Setup ffmpeg
run: |
curl -LO https://github.com/r52/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-win64-gpl-shared-7.1.zip
unzip ffmpeg-n7.1-latest-win64-gpl-shared-7.1.zip
cp -a "ffmpeg-n7.1-latest-win64-gpl-shared-7.1/bin/." /mingw64/bin
cp -a "ffmpeg-n7.1-latest-win64-gpl-shared-7.1/include/." /mingw64/include
cp -a "ffmpeg-n7.1-latest-win64-gpl-shared-7.1/lib/." /mingw64/lib
- name: Configure chiaki-ng
run: |
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCHIAKI_ENABLE_CLI=OFF
- name: Build chiaki-ng
run: |
cmake --build build --config Release --clean-first --target chiaki
- name: Deploy qt6-base:p
run: |
mkdir chiaki-ng-Win
cp build/gui/chiaki.exe chiaki-ng-Win
cp build/third-party/cpp-steam-tools/libcpp-steam-tools.dll chiaki-ng-Win/
ls /mingw64/bin/
cp /mingw64/bin/libcrypto-*.dll chiaki-ng-Win/
cp /mingw64/bin/libssl-*.dll chiaki-ng-Win/
cp /mingw64/bin/SDL2.dll chiaki-ng-Win/
cp /mingw64/bin/avcodec-*.dll chiaki-ng-Win/
cp /mingw64/bin/avutil-*.dll chiaki-ng-Win/
cp /mingw64/bin/avformat-*.dll chiaki-ng-Win/
cp /mingw64/bin/libgcc_s_seh-*.dll chiaki-ng-Win/
cp /mingw64/bin/libopus-*.dll chiaki-ng-Win/
cp /mingw64/bin/libfftw3-*.dll chiaki-ng-Win/
cp /mingw64/bin/libplacebo-*.dll chiaki-ng-Win/
cp /mingw64/bin/libspeexdsp-*.dll chiaki-ng-Win/
cp /mingw64/bin/libstdc++-*.dll chiaki-ng-Win/
cp /mingw64/bin/libbz2-*.dll chiaki-ng-Win/
cp /mingw64/bin/libiconv-*.dll chiaki-ng-Win/
cp /mingw64/bin/libhidapi-*.dll chiaki-ng-Win/
cp /mingw64/bin/zlib1.dll chiaki-ng-Win/
cp /mingw64/bin/libglib-*.dll chiaki-ng-Win/
cp /mingw64/bin/libgobject-*.dll chiaki-ng-Win/
cp /mingw64/bin/liblzma-*.dll chiaki-ng-Win/
cp /mingw64/bin/libintl-*.dll chiaki-ng-Win/
cp /mingw64/bin/libwinpthread-*.dll chiaki-ng-Win/
cp /mingw64/bin/liblcms2-*.dll chiaki-ng-Win/
cp /mingw64/bin/dovi.dll chiaki-ng-Win/
cp /mingw64/bin/libshaderc_shared.dll chiaki-ng-Win/
cp /mingw64/bin/libspirv-cross-c-shared.dll chiaki-ng-Win/
cp /mingw64/bin/libssh2-*.dll chiaki-ng-Win/
cp /mingw64/bin/libbrotlienc.dll chiaki-ng-Win/
cp /mingw64/bin/libbrotlidec.dll chiaki-ng-Win/
cp /mingw64/bin/libfreetype-*.dll chiaki-ng-Win/
cp /mingw64/bin/libgmp-*.dll chiaki-ng-Win/
cp /mingw64/bin/libidn2-*.dll chiaki-ng-Win/
cp /mingw64/bin/libpng*.dll chiaki-ng-Win/
cp /mingw64/bin/libharfbuzz-*.dll chiaki-ng-Win/
cp /mingw64/bin/libmd4c.dll chiaki-ng-Win/
cp /mingw64/bin/libzstd.dll chiaki-ng-Win/
cp /mingw64/bin/libicuuc*.dll chiaki-ng-Win/
cp /mingw64/bin/libb2-*.dll chiaki-ng-Win/
cp /mingw64/bin/libdouble-conversion.dll chiaki-ng-Win/
cp /mingw64/bin/libicuin*.dll chiaki-ng-Win/
cp /mingw64/bin/libpcre2-*.dll chiaki-ng-Win/
cp /mingw64/bin/libp11-kit-*.dll chiaki-ng-Win/
cp /mingw64/bin/libtasn1-*.dll chiaki-ng-Win/
cp /mingw64/bin/libunistring-*.dll chiaki-ng-Win/
cp /mingw64/bin/libfontconfig-*.dll chiaki-ng-Win/
cp /mingw64/bin/libffi-*.dll chiaki-ng-Win/
cp /mingw64/bin/libgio-*.dll chiaki-ng-Win/
cp /mingw64/bin/libsharpyuv-*.dll chiaki-ng-Win/
cp /mingw64/bin/libbrotlicommon.dll chiaki-ng-Win/
cp /mingw64/bin/libicudt*.dll chiaki-ng-Win/
cp /mingw64/bin/libgraphite*.dll chiaki-ng-Win/
cp /mingw64/bin/libexpat*.dll chiaki-ng-Win/
cp /mingw64/bin/libgmodule-*.dll chiaki-ng-Win/
cp /mingw64/bin/libgomp-*.dll chiaki-ng-Win/
cp /mingw64/bin/libminiupnpc.dll chiaki-ng-Win/
cp /mingw64/bin/libpsl-*.dll chiaki-ng-Win/
cp /mingw64/bin/libjson-c-*.dll chiaki-ng-Win/
cp /mingw64/bin/swresample-*.dll chiaki-ng-Win/
cp scripts/qtwebengine_import.qml gui/src/qml/
/mingw64/bin/windeployqt6.exe --no-translations --qmldir=$PWD/gui/src/qml --release chiaki-ng-Win/chiaki.exe
cp -R /mingw64/share/qt6/qml/QtQuick chiaki-ng-Win/qml/
cp -R /mingw64/share/qt6/qml/QtQml/WorkerScript/ chiaki-ng-Win/qml/QtQml/
cp /mingw64/bin/Qt6QmlWorkerScript.dll chiaki-ng-Win/
- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/[email protected]
with:
path: "scripts/chiaki-ng.iss"
options: /O+
- name: Upload chiaki-ng Artifact
uses: actions/upload-artifact@v4
with:
name: chiaki-ng-win_x64-MSYS2-Release.zip
path: chiaki-ng-windows-installer.exe
if-no-files-found: error
retention-days: 7