File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - main
5
+
6
+ resources :
7
+ repositories :
8
+ - repository : 1esPipelines
9
+ type : git
10
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
11
+ ref : refs/tags/release
12
+
13
+ extends :
14
+ template : v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines
15
+ parameters :
16
+ pool :
17
+ name : TypeScript-AzurePipelines-EO
18
+ image : 1ESPT-Mariner2.0
19
+ os : linux
20
+
21
+ sdl :
22
+ enableProductionSDL : true
23
+ sourceAnalysisPool :
24
+ name : TypeScript-AzurePipelines-EO
25
+ image : 1ESPT-Windows2022
26
+ os : windows
27
+
28
+ stages :
29
+ - stage : Build
30
+ displayName : Build
31
+ jobs :
32
+ - job : Build
33
+ displayName : Build
34
+
35
+ steps :
36
+ - checkout : self
37
+ clean : true
38
+ fetchDepth : 1
39
+ fetchTags : false
40
+ submodules : false
41
+
42
+ - bash : |
43
+ npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
44
+ npm --version
45
+ displayName: 'Install packageManager from package.json'
46
+
47
+ # Do --ignore-scripts for now to avoid needing to install/build rust.
48
+ - bash : npm ci --ignore-scripts
49
+ displayName : ' npm ci'
50
+
51
+ - bash : |
52
+ set -euo pipefail
53
+ version=$(grep -oP '^go \K[0-9]+\.[0-9]+' go.mod)
54
+ curl -SL -o '$(Agent.BuildDirectory)/golang.tar.gz' https://aka.ms/golang/release/latest/go${version}.linux-amd64.tar.gz
55
+ tar -C '$(Agent.BuildDirectory)' -xzf '$(Agent.BuildDirectory)/golang.tar.gz'
56
+ rm -f '$(Agent.BuildDirectory)/golang.tar.gz'
57
+ echo '##vso[task.prependpath]$(Agent.BuildDirectory)/go/bin'
58
+ displayName: 'Install Go'
59
+
60
+ - bash : |
61
+ which go
62
+ go version
63
+ displayName: 'Check Go version'
64
+
65
+ - bash : npx hereby build
You can’t perform that action at this time.
0 commit comments