@@ -7,9 +7,18 @@ variables:
7
7
PROJECT_GENERATOR_VERSION : 2
8
8
REPOSITORY_DIR : $(System.DefaultWorkingDirectory)
9
9
trigger :
10
+ batch : true
11
+ branches :
12
+ include :
13
+ - ' *'
10
14
tags :
11
15
include :
12
16
- ' *'
17
+ paths :
18
+ include :
19
+ - azure-pipelines.yml
20
+ - premake5.lua
21
+ - source
13
22
jobs :
14
23
- job : windows
15
24
displayName : Windows
23
32
COMPILER_PLATFORM : vs2019
24
33
PROJECT_OS : windows
25
34
PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/windows/premake-core/premake5.exe
26
- PREMAKE5_URL : https://github.com/premake/premake-core /releases/download/v5.0.0-alpha15 /premake-5.0.0-alpha15 -windows.zip
35
+ PREMAKE5_URL : https://github.com/danielga/garrysmod_common /releases/download/premake5 /premake-5.0.0-alpha16 -windows.zip
27
36
steps :
37
+ - checkout : self
38
+ clean : true
39
+ fetchDepth : 1
40
+ submodules : recursive
28
41
- powershell : ' Invoke-Expression ((New-Object System.Net.WebClient).DownloadString("$env:BOOTSTRAP_URL"))'
29
42
displayName : Bootstrap
30
43
- powershell : ' & "$env:BUILD_SCRIPT"'
@@ -46,26 +59,31 @@ jobs:
46
59
displayName : Linux
47
60
pool :
48
61
name : Azure Pipelines
49
- vmImage : ubuntu-16.04
62
+ vmImage : ubuntu-latest
63
+ container :
64
+ image : registry.gitlab.steamos.cloud/steamrt/scout/sdk:latest
65
+ options : -v /home
50
66
timeoutInMinutes : 10
51
67
variables :
52
68
BOOTSTRAP_URL : https://raw.githubusercontent.com/danielga/garrysmod_common/master/build/bootstrap.sh
53
69
BUILD_SCRIPT : $(System.DefaultWorkingDirectory)/dependencies/garrysmod_common/build/build.sh
54
70
COMPILER_PLATFORM : gmake
55
71
PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/linux/premake-core/premake5
56
72
PROJECT_OS : linux
57
- PREMAKE5_URL : https://github.com/premake/premake-core /releases/download/v5.0.0-alpha15 /premake-5.0.0-alpha15 -linux.tar.gz
73
+ PREMAKE5_URL : https://github.com/danielga/garrysmod_common /releases/download/premake5 /premake-5.0.0-alpha16 -linux.tar.gz
58
74
CC : gcc-9
59
75
CXX : g++-9
60
76
AR : gcc-ar-9
61
77
NM : gcc-nm-9
62
78
RANLIB : gcc-ranlib-9
63
79
steps :
80
+ - checkout : self
81
+ clean : true
82
+ fetchDepth : 1
83
+ submodules : recursive
64
84
- bash : ' curl -s -L "$BOOTSTRAP_URL" | bash'
65
85
displayName : Bootstrap
66
- - bash : |
67
- sudo apt-get update && sudo apt-get install -y g++-9-multilib
68
- $BUILD_SCRIPT
86
+ - bash : ' $BUILD_SCRIPT'
69
87
displayName : Build
70
88
- task : CopyFiles@2
71
89
displayName : ' Copy files to $(Build.ArtifactStagingDirectory)'
@@ -84,11 +102,12 @@ jobs:
84
102
displayName : Publish to GitHub Releases
85
103
pool :
86
104
name : Azure Pipelines
87
- vmImage : ubuntu-18.04
105
+ vmImage : ubuntu-latest
88
106
timeoutInMinutes : 5
89
107
dependsOn :
90
108
- windows
91
109
- linux
110
+ condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
92
111
steps :
93
112
- task : DownloadBuildArtifacts@0
94
113
displayName : ' Download build artifacts'
0 commit comments