Skip to content

Commit 39a2fb3

Browse files
committed
Add azure-pipelines.yml
1 parent 2df8c71 commit 39a2fb3

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

azure-pipelines.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger:
7+
- master
8+
9+
jobs:
10+
- job: build_win32
11+
displayName: Win32 Build
12+
timeoutInMinutes: 0
13+
14+
pool:
15+
vmImage: 'windows-2019'
16+
17+
steps:
18+
- script: |
19+
mkdir glslang_build
20+
cd glslang_build
21+
cmake -G "Visual Studio 16 2019" .. -Thost=x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_VERSION=6.1 -DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=10.0 -DCMAKE_CXX_STANDARD=20 -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_USE_CRT_RELEASE=MT
22+
displayName: Configure glslang
23+
24+
- script: |
25+
cd glslang_build
26+
cmake --build . --config Release -- /maxcpucount
27+
displayName: Build glslang
28+
29+
- script: |
30+
mkdir glslang_out
31+
cd glslang_out
32+
xcopy "..\glslang_build\glslang\Release\glslang.lib" ".\" /E
33+
xcopy "..\glslang_build\hlsl\Release\HLSL.lib" ".\" /E
34+
xcopy "..\glslang_build\OGLCompilersDLL\Release\OGLCompiler.lib" ".\" /E
35+
xcopy "..\glslang_build\glslang\OSDependent\Windows\Release\OSDependent.lib" ".\" /E
36+
xcopy "..\glslang_build\SPIRV\Release\SPIRV.lib" ".\" /E
37+
7z a -t7z -m0=lzma2 -mx=9 -aoa -r "glslanglibs_mt.7z" *.lib
38+
displayName: Package glslang Libraries
39+
40+
- task: GitHubRelease@0
41+
inputs:
42+
gitHubConnection: RPCS3-Token
43+
repositoryName: RPCS3/glslang
44+
action: edit # Options: create, edit, delete
45+
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit
46+
tagSource: auto # Required when action == Create# Options: auto, manual
47+
#tagPattern: # Optional
48+
tag: 'custom-build-win' # Required when action == Edit || Action == Delete || TagSource == Manual
49+
title: 'Windows Build' # Optional
50+
#releaseNotesSource: 'file' # Optional. Options: file, input
51+
#releaseNotesFile: # Optional
52+
#releaseNotes: # Optional
53+
assets: 'glslang_out/glslanglibs_mt.7z' # Optional
54+
assetUploadMode: delete # Optional. Options: delete, replace
55+
#isDraft: false # Optional
56+
#isPreRelease: true # Optional
57+
#addChangeLog: true # Optional
58+
#compareWith: 'lastFullRelease' # Required when addChangeLog == True. Options: lastFullRelease, lastRelease, lastReleaseByTag
59+
#releaseTag: # Required when compareWith == LastReleaseByTag

0 commit comments

Comments
 (0)