mirror of
https://github.com/actions/go-versions.git
synced 2025-07-21 22:58:22 +02:00
Implement builders to build Go from source code
This commit is contained in:
parent
8c06ab5f1e
commit
6cf25b0561
21 changed files with 836 additions and 0 deletions
21
azure-pipelines/templates/build-job.yml
Normal file
21
azure-pipelines/templates/build-job.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
jobs:
|
||||
- job: Build_Go
|
||||
timeoutInMinutes: 90
|
||||
pool:
|
||||
name: Azure Pipelines
|
||||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- checkout: self
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Build Go $(Version)'
|
||||
inputs:
|
||||
targetType: filePath
|
||||
filePath: './builders/build-go.ps1'
|
||||
arguments: '-Version $(Version) -Platform $(Platform) -Architecture $(Architecture)'
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Publish Artifact: Go $(Version)'
|
||||
inputs:
|
||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||
artifactName: 'go-$(Version)-$(Platform)-$(Architecture)'
|
Loading…
Add table
Add a link
Reference in a new issue