@@ -7,9 +7,18 @@ variables:
77  PROJECT_GENERATOR_VERSION : 2 
88  REPOSITORY_DIR : $(System.DefaultWorkingDirectory) 
99trigger :
10+   batch : true 
11+   branches :
12+     include :
13+     - ' *' 
1014  tags :
1115    include :
1216    - ' *' 
17+   paths :
18+     include :
19+     - azure-pipelines.yml 
20+     - premake5.lua 
21+     - source 
1322jobs :
1423- job : windows 
1524  displayName : Windows 
2332    COMPILER_PLATFORM : vs2019 
2433    PROJECT_OS : windows 
2534    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 
2736  steps :
37+   - checkout : self 
38+     clean : true 
39+     fetchDepth : 1 
40+     submodules : recursive 
2841  - powershell : ' Invoke-Expression ((New-Object System.Net.WebClient).DownloadString("$env:BOOTSTRAP_URL"))' 
2942    displayName : Bootstrap 
3043  - powershell : ' & "$env:BUILD_SCRIPT"' 
@@ -46,26 +59,31 @@ jobs:
4659  displayName : Linux 
4760  pool :
4861    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 
5066  timeoutInMinutes : 10 
5167  variables :
5268    BOOTSTRAP_URL : https://raw.githubusercontent.com/danielga/garrysmod_common/master/build/bootstrap.sh 
5369    BUILD_SCRIPT : $(System.DefaultWorkingDirectory)/dependencies/garrysmod_common/build/build.sh 
5470    COMPILER_PLATFORM : gmake 
5571    PREMAKE5 : $(System.DefaultWorkingDirectory)/dependencies/linux/premake-core/premake5 
5672    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 
5874    CC : gcc-9 
5975    CXX : g++-9 
6076    AR : gcc-ar-9 
6177    NM : gcc-nm-9 
6278    RANLIB : gcc-ranlib-9 
6379  steps :
80+   - checkout : self 
81+     clean : true 
82+     fetchDepth : 1 
83+     submodules : recursive 
6484  - bash : ' curl -s -L "$BOOTSTRAP_URL" | bash' 
6585    displayName : Bootstrap 
66-   - bash : | 
67-       sudo apt-get update && sudo apt-get install -y g++-9-multilib 
68-       $BUILD_SCRIPT 
86+   - bash : ' $BUILD_SCRIPT' 
6987    displayName : Build 
7088  - task : CopyFiles@2 
7189    displayName : ' Copy files to $(Build.ArtifactStagingDirectory)' 
@@ -84,11 +102,12 @@ jobs:
84102  displayName : Publish to GitHub Releases 
85103  pool :
86104    name : Azure Pipelines 
87-     vmImage : ubuntu-18.04  
105+     vmImage : ubuntu-latest  
88106  timeoutInMinutes : 5 
89107  dependsOn :
90108    - windows 
91109    - linux 
110+   condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) 
92111  steps :
93112  - task : DownloadBuildArtifacts@0 
94113    displayName : ' Download build artifacts' 
0 commit comments