-
Notifications
You must be signed in to change notification settings - Fork 92
79 lines (69 loc) · 1.95 KB
/
main.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
name: Build MPC-BE
on:
push:
paths-ignore:
- .github/workflows/main.yml
- '**.txt'
- '**.md'
- '**.cmd'
- '**.bat'
- '**.vcxproj.filters'
pull_request:
paths-ignore:
- .github/workflows/main.yml
- '**.txt'
- '**.md'
- '**.cmd'
- '**.bat'
- '**.vcxproj.filters'
jobs:
build:
runs-on: windows-2022
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Prepare MSYS
run: |
curl -sSL https://github.com/Aleksoid1978/MSYS/raw/main/MSYS_MinGW-w64_GCC_1320_x86-x64.7z -o MSYS.7z
7z x MSYS.7z -oC:\\MSYS
echo '@ECHO OFF' > environments.bat
echo 'SET "MPCBE_MSYS=C:\\MSYS"' >> environments.bat
echo 'SET "MPCBE_MINGW=C:\\MSYS\\mingw"' >> environments.bat
.\\update_gcc.bat
shell: pwsh
- name: Clean
run: |
.\\build.bat Clean All NoWait
shell: pwsh
- name: Build MPC-BE
run: |
.\\build.bat Build Packages NoWait
shell: pwsh
- name: Upload Installer x64
uses: actions/upload-artifact@v4
with:
name: "Installer x64"
path: _bin/Packages/**/MPC-BE*.x64-installer.zip
compression-level: 0
- name: Upload Zip x64
uses: actions/upload-artifact@v4
with:
name: "Zip x64"
path: _bin/Packages/**/MPC-BE*.x64.7z
compression-level: 0
- name: Upload Installer x86
uses: actions/upload-artifact@v4
with:
name: "Installer x86"
path: _bin/Packages/**/MPC-BE*.x86-installer.zip
compression-level: 0
- name: Upload Zip x86
uses: actions/upload-artifact@v4
with:
name: "Zip x86"
path: _bin/Packages/**/MPC-BE*.x86.7z
compression-level: 0