-
-
Notifications
You must be signed in to change notification settings - Fork 83
170 lines (159 loc) · 6.76 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
name: Build Chiaki4deck 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@v3
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 zip git make unzip --noconfirm
- name: Build libbplacebo
run: |
scripts/build-libplacebo.sh
- name: Setup ffmpeg
run: |
curl -LO https://github.com/r52/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.0-latest-win64-gpl-shared-7.0.zip
unzip ffmpeg-n7.0-latest-win64-gpl-shared-7.0.zip
cp -a "ffmpeg-n7.0-latest-win64-gpl-shared-7.0/bin/." /mingw64/bin
cp -a "ffmpeg-n7.0-latest-win64-gpl-shared-7.0/include/." /mingw64/include
cp -a "ffmpeg-n7.0-latest-win64-gpl-shared-7.0/lib/." /mingw64/lib
- name: Configure Chiaki4deck
run: |
cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCHIAKI_ENABLE_CLI=OFF
- name: Build Chiaki4deck
run: |
cmake --build build --config Release --clean-first --target chiaki
- name: Deploy qt6-base:p
run: |
mkdir Chiaki4deck-Win
cp build/gui/chiaki.exe Chiaki4deck-Win
cp build/third-party/cpp-steam-tools/libcpp-steam-tools.dll Chiaki4deck-Win/
cp /mingw64/bin/libcrypto-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libssl-*.dll Chiaki4deck-Win/
cp /mingw64/bin/SDL2.dll Chiaki4deck-Win/
cp /mingw64/bin/avcodec-*.dll Chiaki4deck-Win/
cp /mingw64/bin/avutil-*.dll Chiaki4deck-Win/
cp /mingw64/bin/avformat-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgcc_s_seh-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libopus-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libfftw3-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libplacebo-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libspeexdsp-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libstdc++-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libbz2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libiconv-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libhidapi-*.dll Chiaki4deck-Win/
cp /mingw64/bin/zlib1.dll Chiaki4deck-Win/
cp /mingw64/bin/libglib-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgobject-*.dll Chiaki4deck-Win/
cp /mingw64/bin/liblzma-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libintl-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libwinpthread-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libva.dll Chiaki4deck-Win/
cp /mingw64/bin/libva_win32.dll Chiaki4deck-Win/
cp /mingw64/bin/liblcms2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/dovi.dll Chiaki4deck-Win/
cp /mingw64/bin/libspeex-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libshaderc_shared.dll Chiaki4deck-Win/
cp /mingw64/bin/libspirv-cross-c-shared.dll Chiaki4deck-Win/
cp /mingw64/bin/libwebp-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libwebpmux-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libbrotlienc.dll Chiaki4deck-Win/
cp /mingw64/bin/libbrotlidec.dll Chiaki4deck-Win/
cp /mingw64/bin/libfreetype-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgmp-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libidn2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libpng*.dll Chiaki4deck-Win/
cp /mingw64/bin/libharfbuzz-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libmd4c.dll Chiaki4deck-Win/
cp /mingw64/bin/libzstd.dll Chiaki4deck-Win/
cp /mingw64/bin/libicuuc*.dll Chiaki4deck-Win/
cp /mingw64/bin/libb2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libdouble-conversion.dll Chiaki4deck-Win/
cp /mingw64/bin/libicuin*.dll Chiaki4deck-Win/
cp /mingw64/bin/libpcre2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libp11-kit-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libtasn1-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libunistring-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libfontconfig-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libffi-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgio-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libogg-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libsharpyuv-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libbrotlicommon.dll Chiaki4deck-Win/
cp /mingw64/bin/libicudt*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgraphite*.dll Chiaki4deck-Win/
cp /mingw64/bin/libexpat*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgmodule-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libgomp-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libminiupnpc.dll Chiaki4deck-Win/
cp /mingw64/bin/libpsl-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libssh2-*.dll Chiaki4deck-Win/
cp /mingw64/bin/libjson-c-*.dll Chiaki4deck-Win/
cp /mingw64/bin/swresample-*.dll Chiaki4deck-Win/
/mingw64/bin/windeployqt6.exe --no-translations --qmldir=$PWD/gui/src/qml --release Chiaki4deck-Win/chiaki.exe
cp -R /mingw64/share/qt6/qml/QtQuick Chiaki4deck-Win/qml/
cp -R /mingw64/share/qt6/qml/QtQml/WorkerScript/ Chiaki4deck-Win/qml/QtQml/
cp /mingw64/bin/Qt6QmlWorkerScript.dll Chiaki4deck-Win/
zip -r Chiaki4deck-Win.zip Chiaki4deck-Win/
- name: Upload Chiaki4deck Artifact
uses: actions/upload-artifact@v3
with:
name: Chiaki4deck-win_x64-MSYS2-Release
path: Chiaki4deck-Win.zip
if-no-files-found: error
retention-days: 1