@@ -25,15 +25,15 @@ jobs:
25
25
displayName : Windows
26
26
pool :
27
27
name : Azure Pipelines
28
- vmImage : windows-2019
28
+ vmImage : windows-latest
29
29
timeoutInMinutes : 10
30
30
variables :
31
31
BOOTSTRAP_URL : https://raw.githubusercontent.com/danielga/garrysmod_common/master/build/bootstrap.ps1
32
32
BUILD_SCRIPT : $(System.DefaultWorkingDirectory)/dependencies/garrysmod_common/build/build.ps1
33
- COMPILER_PLATFORM : vs2019
33
+ COMPILER_PLATFORM : vs2022
34
34
PROJECT_OS : windows
35
35
PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/windows/premake-core/premake5.exe
36
- PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta1 /premake-5.0.0-beta1 -windows.zip
36
+ PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta2 /premake-5.0.0-beta2 -windows.zip
37
37
steps :
38
38
- checkout : self
39
39
clean : true
@@ -46,16 +46,14 @@ jobs:
46
46
- task : CopyFiles@2
47
47
displayName : ' Copy files to $(Build.ArtifactStagingDirectory)'
48
48
inputs :
49
- SourceFolder : ' $(System.DefaultWorkingDirectory)/projects/windows/vs2019 '
49
+ SourceFolder : ' $(System.DefaultWorkingDirectory)/projects/windows/vs2022 '
50
50
Contents : ' */Release/*.dll'
51
51
TargetFolder : ' $(Build.ArtifactStagingDirectory)'
52
52
CleanTargetFolder : true
53
53
flattenFolders : true
54
54
preserveTimestamp : true
55
- - task : PublishBuildArtifacts@1
56
- displayName : ' Publish build artifacts'
57
- inputs :
58
- ArtifactName : windows
55
+ - publish : ' $(Build.ArtifactStagingDirectory)'
56
+ artifact : windows
59
57
- job : linux
60
58
displayName : Linux
61
59
pool :
71
69
COMPILER_PLATFORM : gmake
72
70
PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/linux/premake-core/premake5
73
71
PROJECT_OS : linux
74
- PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta1 /premake-5.0.0-beta1 -linux.tar.gz
72
+ PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta2 /premake-5.0.0-beta2 -linux.tar.gz
75
73
CC : gcc-9
76
74
CXX : g++-9
77
75
AR : gcc-ar-9
@@ -86,33 +84,24 @@ jobs:
86
84
displayName : Bootstrap
87
85
- bash : ' $BUILD_SCRIPT'
88
86
displayName : Build
89
- - task : CopyFiles@2
87
+ - bash : ' cp -f "$(System.DefaultWorkingDirectory)/projects/linux/gmake/"*"/Release/"*".dll" "$(Build.ArtifactStagingDirectory)" '
90
88
displayName : ' Copy files to $(Build.ArtifactStagingDirectory)'
91
- inputs :
92
- SourceFolder : ' $(System.DefaultWorkingDirectory)/projects/linux/gmake'
93
- Contents : ' */Release/*.dll'
94
- TargetFolder : ' $(Build.ArtifactStagingDirectory)'
95
- CleanTargetFolder : true
96
- flattenFolders : true
97
- preserveTimestamp : true
98
- - task : PublishBuildArtifacts@1
99
- displayName : ' Publish build artifacts'
100
- inputs :
101
- ArtifactName : linux
89
+ - publish : ' $(Build.ArtifactStagingDirectory)'
90
+ artifact : linux
102
91
- job : macosx
103
92
displayName : macOS
104
93
pool :
105
94
name : Azure Pipelines
106
- vmImage : macOS-10.15
95
+ vmImage : macOS-latest
107
96
timeoutInMinutes : 10
108
97
variables :
109
98
BOOTSTRAP_URL : https://raw.githubusercontent.com/danielga/garrysmod_common/master/build/bootstrap.sh
110
99
BUILD_SCRIPT : $(System.DefaultWorkingDirectory)/dependencies/garrysmod_common/build/build.sh
111
100
COMPILER_PLATFORM : gmake
112
101
PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/macosx/premake-core/premake5
113
102
PROJECT_OS : macosx
114
- PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta1 /premake-5.0.0-beta1 -macosx.tar.gz
115
- MACOSX_SDK_URL : https://github.com/phracker/MacOSX-SDKs/releases/download/10.15 /MacOSX10.7.sdk.tar.xz
103
+ PREMAKE5_URL : https://github.com/danielga/garrysmod_common/releases/download/premake-build%2F5.0.0-beta2 /premake-5.0.0-beta2 -macosx.tar.gz
104
+ MACOSX_SDK_URL : https://github.com/phracker/MacOSX-SDKs/releases/download/11.3 /MacOSX10.7.sdk.tar.xz
116
105
MACOSX_SDK_DIRECTORY : $(System.DefaultWorkingDirectory)/dependencies/macosx/MacOSX10.7.sdk
117
106
SDKROOT : $(System.DefaultWorkingDirectory)/dependencies/macosx/MacOSX10.7.sdk
118
107
AR : ar
@@ -124,7 +113,7 @@ jobs:
124
113
- bash : ' curl -s -L "$BOOTSTRAP_URL" | bash'
125
114
displayName : Bootstrap
126
115
- bash : |
127
- sudo xcode-select -s "/Applications/Xcode_11.4.1 .app/Contents/Developer"
116
+ sudo xcode-select -s "/Applications/Xcode_11.7 .app/Contents/Developer"
128
117
$BUILD_SCRIPT
129
118
displayName: Build
130
119
- task : CopyFiles@2
@@ -136,10 +125,8 @@ jobs:
136
125
CleanTargetFolder : true
137
126
flattenFolders : true
138
127
preserveTimestamp : true
139
- - task : PublishBuildArtifacts@1
140
- displayName : ' Publish build artifacts'
141
- inputs :
142
- ArtifactName : macosx
128
+ - publish : ' $(Build.ArtifactStagingDirectory)'
129
+ artifact : macosx
143
130
- job : publish
144
131
displayName : Publish to GitHub Releases
145
132
pool :
@@ -152,15 +139,12 @@ jobs:
152
139
- macosx
153
140
condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
154
141
steps :
155
- - task : DownloadBuildArtifacts@0
156
- displayName : ' Download build artifacts'
157
- inputs :
158
- downloadType : specific
159
- parallelizationLimit : 12
142
+ - download : current
143
+ patterns : ' **/*.dll'
160
144
- task : GitHubRelease@1
161
145
displayName : ' Publish GitHub release $(build.sourceBranchName)'
162
146
inputs :
163
147
gitHubConnection : ' GitHub danielga'
164
148
releaseNotesSource : inline
165
- assets : ' $(System.ArtifactsDirectory )/**'
149
+ assets : ' $(Pipeline.Workspace )/**/*.dll '
166
150
addChangeLog : false
0 commit comments