-
Notifications
You must be signed in to change notification settings - Fork 161
101 lines (87 loc) · 4.15 KB
/
build_vp_clang_sdk.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
name: Build
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
with:
path: |
./wget
sdk7.iso
./SDK7
sdk71.iso
./SDK7.1
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Install wget
if: steps.cache.outputs.cache-hit != 'true'
run: |
echo "Installing wget..."
mkdir wget
Invoke-WebRequest -Uri https://eternallybored.org/misc/wget/1.21.3/64/wget.exe -OutFile "wget\wget.exe"
ls
cd $env:GITHUB_WORKSPACE\wget
ls
Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\wget"
echo "wget installation complete."
- name: Download Windows SDK 7.0 SP1 and 7.1
if: steps.cache.outputs.cache-hit != 'true'
run: |
echo "Downloading SDKs..."
wget -O ./sdk7.iso https://web.archive.org/web/20161230154527/http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDK_EN_DVD.iso
wget -O ./sdk71.iso http://download.microsoft.com/download/F/1/0/F10113F5-B750-4969-A255-274341AC6BCE/GRMSDK_EN_DVD.iso
7z x ./sdk7.iso -y -o"./SDK7"
7z x ./sdk71.iso -y -o"./SDK7.1"
echo "SDKs downloaded and extracted."
- name: Install SDKs
run: |
echo "Installing SDKs..."
Start-Process -FilePath ".\SDK7\Setup\WinSDK\WinSDK_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\WinSDKBuild\WinSDKBuild_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\WinSDKInterop\WinSDKInterop_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\WinSDKTools\WinSDKTools_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\WinSDKWin32Tools\WinSDKWin32Tools_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\vc_stdx86\vc_stdx86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\vc_stdamd64\vc_stdamd64.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\winsdk_intellidocs\winsdk_intellidocs.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7\Setup\WinSDKNetFxTools\WinSDK_nfxtoolsm_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDK\WinSDK_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDKBuild\WinSDKBuild_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDKInterop\WinSDKInterop_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDKTools\WinSDKTools_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDKWin32Tools\WinSDKWin32Tools_x86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\vc_stdx86\vc_stdx86.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\vc_stdamd64\vc_stdamd64.msi" -ArgumentList "/qn" -Wait
Start-Process -FilePath ".\SDK7.1\Setup\WinSDKNetFxTools\WinSDK_nfxtoolsm_x86.msi" -ArgumentList "/qn" -Wait
echo "SDKs installation complete."
- name: Clang version check
run: |
clang --version
- name: Run debug build
run: |
python build_vp_clang_sdk.py --config debug
- name: Display debug build log
run: |
cat clang-output/Debug/build.log
- name: Run release build
run: |
python build_vp_clang_sdk.py --config release
- name: Display release build log
run: |
cat clang-output/Release/build.log
- name: Create debug artifact
uses: actions/upload-artifact@v4
with:
name: VP_Clang_Debug
path: 'clang-output\Debug'
- name: Create release artifact
uses: actions/upload-artifact@v4
with:
name: VP_Clang_Release
path: 'clang-output\Release'