11
11
jobs :
12
12
build :
13
13
runs-on : windows-latest
14
- strategy :
15
- fail-fast : false
16
- matrix :
17
- arch : [x64]
18
- config : [Release]
19
- link : [dll]
20
-
21
- include :
22
- - link : dll
23
- shlib : " ON"
24
14
25
15
steps :
26
16
- name : Source checkout
27
17
uses : actions/checkout@v3
28
- with :
29
- repository : rmcpantoja/espeak-ng
30
- path : espeak-ng
31
- - name : configure-espeak
32
- run : cd espeak-ng && cmake -Bbuild -DUSE_ASYNC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shlib }} -A ${{ matrix.arch }} -DUSE_MBROLA:BOOL=OFF -DUSE_LIBSONIC:BOOL=OFF -DUSE_LIBPCAUDIO:BOOL=OFF -DUSE_KLATT:BOOL=OFF -DUSE_SPEECHPLAYER:BOOL=OFF -DEXTRA_cmn:BOOL=ON -DEXTRA_ru:BOOL=ON
33
- - name : make-espeak
34
- run : cd espeak-ng && cmake --build build --config ${{ matrix.config }}
35
- - uses : actions/checkout@v3
36
- with :
37
- path : VeTube
18
+
38
19
- name : Configure Python
39
20
uses : actions/setup-python@v4
40
21
with :
@@ -44,32 +25,30 @@ jobs:
44
25
- name : Install dependencies
45
26
run : |
46
27
pip install --upgrade pip wheel setuptools
47
- pip install -r VeTube/ requirements.txt
28
+ pip install -r requirements.txt
48
29
pip install pyinstaller gdown
49
30
pip install --upgrade pyzmq httpx httpcore future
31
+ git clone https://github.com/mush42/espeak-phonemizer-windows
50
32
51
33
- name : Compiling
52
34
run : |
53
- cd VeTube
54
35
pyinstaller VeTube.py --windowed
55
36
gdown 1ZtF6zus0A7kC9Lwr_kTUbw0MiOoZq29H -O dist/VeTube/bootstrap.exe
56
37
cp -R chat_downloader dist/VeTube/
57
38
cp -R doc dist/VeTube/
58
39
cp -R locales dist/VeTube/
59
40
cp -R sounds dist/VeTube/
60
- mkdir dist/VeTube/espeak-ng
61
- cp -R ../espeak-ng/build/src/release/espeak-ng.dll dist/VeTube/espeak-ng
62
- cp -R ../espeak-ng/build/espeak-ng-data dist/VeTube/espeak-ng
41
+ cp -R espeak-phonemizer-windows/espeak_phonemizer dist/VeTube/
63
42
- uses : actions/upload-artifact@v3
64
43
with :
65
44
name : VeTube-x64
66
- path : VeTube/ dist/VeTube
45
+ path : dist/VeTube
67
46
if-no-files-found : error
68
47
- name : zip packaging
69
48
run : |
70
- cd VeTube/ dist/VeTube
71
- 7z a ../../../ VeTube-x64.zip .
72
- cd ../../../
49
+ cd dist/VeTube
50
+ 7z a ../../VeTube-x64.zip .
51
+ cd ../../
73
52
- name : vetube_release
74
53
uses : softprops/action-gh-release@v1
75
54
if : ${{ startsWith(github.ref, 'refs/tags/') }}
0 commit comments