blob: 6be783d7ba50d87e0d804257f574ecfabf30428a (
plain)
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
|
name: Windows Build
on: [push, pull_request]
jobs:
build_mingw:
name: CLI / LibHB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Environment Setup
run: |
sudo apt-get install automake autoconf build-essential cmake curl gcc git intltool libtool libtool-bin m4 make nasm patch pkg-config python tar yasm zlib1g-dev ninja-build zip
sudo apt-get install bison bzip2 flex g++ gzip pax
sudo apt-get install python3-pip
sudo apt-get install python3-setuptools
sudo pip3 install meson
- name: Compile Toolchain
run: |
./scripts/mingw-w64-build --disable-gdb x86_64 ~/toolchains
./scripts/mingw-w64-build x86_64.clean
./scripts/mingw-w64-build pkgclean
cd /home/runner/toolchains/
ls -la
du -hs
cd ..
tar cvzf toolchain.tar.gz toolchains/
ls -la
- name: Cache Toolchain
id: cache-toolchain
uses: actions/cache@v1
with:
path: /home/runner/toolchain.tar.gz
key: mingw-toolchain
- name: Build CLI and LibHB
run: |
export PATH="/home/runner/toolchains/mingw-w64-x86_64/bin:${PATH}"
./configure --cross=x86_64-w64-mingw32 --enable-qsv --enable-vce --enable-nvenc --launch-jobs=$(nproc) --launch
cd build
make pkg.create.zip
build_gui:
name: Windows UI
runs-on: windows-latest
needs: build_mingw
steps:
- uses: actions/checkout@master
- name: Environment Setup
run: |
choco install wget
wget https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
mkdir plugins
move Inetc.zip plugins
cd plugins
7z x Inetc.zip
dir
- name: NuGet Restore
run: |
choco install nuget.commandline
cd win/CS/
nuget restore HandBrake.sln
- name: Build Windows GUI
run: |
set PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin";%PATH%
echo %PATH%
msbuild -version
msbuild win\cs\build.xml /t:Nightly
|