Compare commits
118 Commits
Author | SHA1 | Date |
---|---|---|
wyang | b45ec15d40 | 2 years ago |
yangwang | 719fde58e3 | 2 years ago |
yangwang | 686ecfacea | 2 years ago |
github-actions[bot] | 797449dd8e | 2 years ago |
github-actions[bot] | b27d67b686 | 2 years ago |
github-actions[bot] | 476ac2a1cb | 2 years ago |
github-actions[bot] | 4fbaddfe63 | 2 years ago |
github-actions[bot] | 244f8fdaff | 2 years ago |
Ivan | f999e556e9 | 2 years ago |
github-actions[bot] | 2f4bcf5e73 | 2 years ago |
Marko Zivic | 8666f92fad | 2 years ago |
Evgenii Korolevskii | 9ea2b986ed | 2 years ago |
Marko Zivic | 1a111f3e5c | 2 years ago |
MaksimZhukov | 1e50d2d968 | 2 years ago |
github-actions[bot] | c9ed2f9d11 | 2 years ago |
MaksimZhukov | e997e9e934 | 2 years ago |
github-actions[bot] | dca364fcdb | 2 years ago |
Marko Zivic | 8b01adb6c0 | 2 years ago |
Service account | 4c9c326cab | 2 years ago |
github-actions[bot] | 7fbc001811 | 2 years ago |
Marko Zivic | acce0a295a | 2 years ago |
github-actions[bot] | db588f6323 | 2 years ago |
github-actions[bot] | c3a220ac09 | 2 years ago |
github-actions[bot] | 58362e99d6 | 2 years ago |
github-actions[bot] | 82e37a11c9 | 3 years ago |
github-actions[bot] | 57ea5543a0 | 3 years ago |
Marko Zivic | 6ac541a152 | 3 years ago |
Service account | 710d16ce77 | 3 years ago |
aloviedo | a9a1e21f04 | 3 years ago |
Ethan Chiu | b591576203 | 3 years ago |
Ethan Chiu | b97793e13e | 3 years ago |
Brian Cristante | b844ed6c6d | 3 years ago |
Service account | 8a0545cb70 | 3 years ago |
Brian Cristante | 34306dce78 | 3 years ago |
Ethan Chiu | 2e49d3e53d | 3 years ago |
Ethan Chiu | c18c2ac1ac | 3 years ago |
github-actions[bot] | b2fe27c0b9 | 3 years ago |
github-actions[bot] | c27e49f619 | 3 years ago |
github-actions[bot] | 9d9bd2c789 | 3 years ago |
github-actions[bot] | 017e64abe3 | 3 years ago |
github-actions[bot] | dfb38cff48 | 3 years ago |
Nikolay Frolov | 4e55ba98df | 3 years ago |
MaksimZhukov | 6e78c4b835 | 3 years ago |
Service account | 6ab1ee80cb | 3 years ago |
MaksimZhukov | 6712407a7f | 3 years ago |
Nikolay Frolov | 91c89f70d1 | 3 years ago |
MaksimZhukov | 13c5817e5c | 3 years ago |
Yuriy-Kukushkin | 38f14f667d | 3 years ago |
Yuriy-Kukushkin | 5735a29e98 | 3 years ago |
MaksimZhukov | 25beb00b9f | 3 years ago |
Service account | 260b2b7fbc | 3 years ago |
Yuriy-Kukushkin | 187f998b00 | 3 years ago |
Yuriy-Kukushkin | 7dad0a857d | 3 years ago |
Yuriy-Kukushkin | bf5a404e5b | 3 years ago |
Yuriy-Kukushkin | 307dc6197a | 3 years ago |
MaksimZhukov | 868a8c05e8 | 3 years ago |
Nikita Bykov | df37e8bf8f | 3 years ago |
Nikita Bykov | b895c36713 | 3 years ago |
Nikita Bykov | d0f2864c56 | 3 years ago |
Nikita Bykov | c8892db080 | 3 years ago |
Nikita Bykov | dc914fd71a | 3 years ago |
github-actions[bot] | 293cbf311d | 3 years ago |
MaksimZhukov | 090a19ca59 | 3 years ago |
Service account | 00a50d6501 | 3 years ago |
github-actions[bot] | 562bf9fcb9 | 3 years ago |
Alena Sviridenko | 8ad5091061 | 4 years ago |
Service account | f18d1622a0 | 4 years ago |
Alena Sviridenko | e891add10b | 4 years ago |
Service account | 2021212951 | 4 years ago |
Alena Sviridenko | 814ab7ec6d | 4 years ago |
Service account | 68009643bb | 4 years ago |
MaksimZhukov | 9291170abe | 4 years ago |
Service account | ed61881ea7 | 4 years ago |
Maxim Lobanov | 15cbc5916e | 4 years ago |
Service account | 0e28055e56 | 4 years ago |
MaksimZhukov | d3edc80ad6 | 4 years ago |
Service account | 2689509c1b | 4 years ago |
MaksimZhukov | aa3776fc05 | 4 years ago |
Service account | f1bfe9ec2a | 4 years ago |
MaksimZhukov | 426f431301 | 4 years ago |
Maxim Lobanov | cf20b665a4 | 4 years ago |
Service account | 0783ef2ad9 | 4 years ago |
Maxim Lobanov | 7b21874c08 | 4 years ago |
Maxim Lobanov | 98429fb586 | 4 years ago |
Maxim Lobanov | ce802984c0 | 4 years ago |
Service account | abba187441 | 4 years ago |
MaksimZhukov | eab7225c23 | 4 years ago |
MaksimZhukov | ba4d1dead0 | 4 years ago |
MaksimZhukov | bbbdbbf479 | 4 years ago |
Service account | 078e4a8546 | 4 years ago |
MaksimZhukov | 690124df27 | 4 years ago |
Service account | 5d20670749 | 4 years ago |
MaksimZhukov | e89bc70e56 | 4 years ago |
MaksimZhukov | 889792e4fa | 4 years ago |
Maxim Lobanov | eba638186e | 4 years ago |
Service account | 808755602f | 4 years ago |
MaksimZhukov | 72a65bfa06 | 4 years ago |
MaksimZhukov | 37c1fbd5d5 | 4 years ago |
Service account | f7ed56c974 | 4 years ago |
MaksimZhukov | 19f60e7cf5 | 4 years ago |
MaksimZhukov | 333033608c | 4 years ago |
MaksimZhukov | 7cea0f8549 | 4 years ago |
Service account | 817f326783 | 4 years ago |
MaksimZhukov | 5b3b061dd1 | 4 years ago |
Nikita Bykov | e33ef4429e | 4 years ago |
Nikita Bykov | c455148af9 | 4 years ago |
Maxim Lobanov | 2873528ad9 | 4 years ago |
Service account | 772e7814a5 | 4 years ago |
Maxim Lobanov | 12335a5b75 | 4 years ago |
Service account | a4d6b93b68 | 4 years ago |
Maxim Lobanov | 41e5fabc82 | 4 years ago |
MaksimZhukov | af49bddae7 | 4 years ago |
Maxim Lobanov | dffccd4e4d | 4 years ago |
Service account | 02bb9f8abe | 4 years ago |
Maxim Lobanov | 83c2976bd0 | 5 years ago |
Maxim Lobanov | 2d148b3dfc | 5 years ago |
Service account | 773e210944 | 5 years ago |
Maxim Lobanov | 149df221c7 | 5 years ago |
@ -0,0 +1 @@
|
|||||||
|
* @actions/setup-actions-team
|
@ -0,0 +1,18 @@
|
|||||||
|
name: Generate Go package
|
||||||
|
run-name: Generate Go ${{ inputs.VERSION || '1.19.0' }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'releases/1.17.4.1'
|
||||||
|
- 'releases/**'
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
go:
|
||||||
|
name: Go
|
||||||
|
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main
|
||||||
|
with:
|
||||||
|
tool-name: "go"
|
||||||
|
tool-version: ${{ inputs.VERSION || '1.19.0' }}
|
||||||
|
publish-release: ${{ inputs.PUBLISH_RELEASES || false }}
|
||||||
|
secrets: inherit
|
@ -0,0 +1,16 @@
|
|||||||
|
name: CodeQL analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 * * 0'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-codeQL-analysis:
|
||||||
|
name: CodeQL analysis
|
||||||
|
uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
|
||||||
|
with:
|
||||||
|
languages: "['go']"
|
@ -0,0 +1,10 @@
|
|||||||
|
name: Create Pull Request
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-pr:
|
||||||
|
uses: actions/versions-package-tools/.github/workflows/create-pr-to-update-manifest.yml@main
|
||||||
|
with:
|
||||||
|
tool-name: "go"
|
||||||
|
secrets: inherit
|
@ -0,0 +1,13 @@
|
|||||||
|
name: Get Go versions
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3,15 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
get-new-go-versions:
|
||||||
|
uses: actions/versions-package-tools/.github/workflows/get-new-tool-versions.yml@main
|
||||||
|
with:
|
||||||
|
tool-name: "Go"
|
||||||
|
image-url: "https://go.dev/images/gopher-footer.jpg"
|
||||||
|
secrets: inherit
|
@ -0,0 +1,21 @@
|
|||||||
|
name: Validate manifest
|
||||||
|
on:
|
||||||
|
# The GITHUB_TOKEN secret is used to create a PR
|
||||||
|
# The pull_request event will not be triggered by it
|
||||||
|
# That's one of the reasons we need the schedule to validate the versions-manifest.json file
|
||||||
|
schedule:
|
||||||
|
- cron: '0 8,20 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'versions-manifest.json'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
manifest:
|
||||||
|
uses: actions/versions-package-tools/.github/workflows/validate-manifest.yml@main
|
||||||
|
with:
|
||||||
|
tool-name: "Go"
|
||||||
|
image-url: "https://go.dev/images/gopher-footer.jpg"
|
||||||
|
secrets: inherit
|
@ -1,15 +1,17 @@
|
|||||||
# Go for Actions
|
# Go for Actions
|
||||||
This repository contains the code and scripts that we use to prepare Go packages used in [virtual-environments](https://github.com/actions/virtual-environments) and accessible through the [setup-go](https://github.com/actions/setup-go) Action.
|
This repository contains the code and scripts that we use to prepare Go packages used in [runner-images](https://github.com/actions/runner-images) and accessible through the [setup-go](https://github.com/actions/setup-go) Action.
|
||||||
The file [versions-manifest.json](./versions-manifest.json) contains the list of available and released versions.
|
The file [versions-manifest.json](./versions-manifest.json) contains the list of available and released versions.
|
||||||
|
|
||||||
> Caution: this is prepared for and only permitted for use by actions `virtual-environments` and `setup-go` action.
|
> Caution: this is prepared for and only permitted for use by actions `runner-images` and `setup-go` action.
|
||||||
|
|
||||||
**Status**: Currently under development and in use for beta and preview actions. This repo is undergoing rapid changes.
|
**Status**: Currently under development and in use for beta and preview actions. This repo is undergoing rapid changes.
|
||||||
|
|
||||||
Latest of LTS versions will be installed on the [virtual-environments](https://github.com/actions/virtual-environments) images. Other versions will be pulled JIT using the [`setup-go`](https://github.com/actions/setup-go) action.
|
Latest of LTS versions will be installed on the [runner-images](https://github.com/actions/runner-images) images. Other versions will be pulled JIT using the [`setup-go`](https://github.com/actions/setup-go) action.
|
||||||
|
|
||||||
## Adding new versions
|
## Adding new versions
|
||||||
We are trying to prepare packages for new versions of Go as soon as they are released. Please open an issue if any versions are missing.
|
We are trying to prepare packages for new versions of Go as soon as they are released. Please open an issue in [actions/runner-images](https://github.com/actions/runner-images) if any versions are missing.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
||||||
|
|
||||||
|
## mirror from github
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
name: $(date:yyyyMMdd)$(rev:.r)-Go-$(VERSION)
|
|
||||||
trigger: none
|
|
||||||
pr:
|
|
||||||
autoCancel: true
|
|
||||||
branches:
|
|
||||||
include:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
exclude:
|
|
||||||
- versions-manifest.json
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- stage: Build_Go_Darwin
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
Platform: darwin
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Go_Darwin
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Go_Darwin
|
|
||||||
variables:
|
|
||||||
VmImage: macOS-latest
|
|
||||||
Platform: darwin
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Go_Linux
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
Platform: linux
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Go_Linux
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Go_Linux
|
|
||||||
variables:
|
|
||||||
VmImage: ubuntu-latest
|
|
||||||
Platform: linux
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
||||||
|
|
||||||
- stage: Build_Go_Windows
|
|
||||||
dependsOn: []
|
|
||||||
variables:
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/build-job.yml
|
|
||||||
|
|
||||||
- stage: Test_Go_Windows
|
|
||||||
condition: succeeded()
|
|
||||||
dependsOn: Build_Go_Windows
|
|
||||||
variables:
|
|
||||||
VmImage: windows-latest
|
|
||||||
Platform: win32
|
|
||||||
Architecture: x64
|
|
||||||
jobs:
|
|
||||||
- template: /azure-pipelines/templates/test-job.yml
|
|
@ -1,21 +0,0 @@
|
|||||||
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)'
|
|
@ -1,75 +0,0 @@
|
|||||||
jobs:
|
|
||||||
- job: Test_Go
|
|
||||||
pool:
|
|
||||||
name: Azure Pipelines
|
|
||||||
vmImage: $(VmImage)
|
|
||||||
steps:
|
|
||||||
- checkout: self
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: Fully cleanup the toolcache directory before testing
|
|
||||||
inputs:
|
|
||||||
targetType: filePath
|
|
||||||
filePath: helpers/clean-toolcache.ps1
|
|
||||||
arguments: -ToolName "go"
|
|
||||||
|
|
||||||
- task: DownloadPipelineArtifact@2
|
|
||||||
inputs:
|
|
||||||
source: 'current'
|
|
||||||
artifact: 'go-$(Version)-$(Platform)-$(Architecture)'
|
|
||||||
path: $(Build.ArtifactStagingDirectory)
|
|
||||||
|
|
||||||
- task: ExtractFiles@1
|
|
||||||
inputs:
|
|
||||||
archiveFilePatterns: '$(Build.ArtifactStagingDirectory)/go-$(Version)-$(Platform)-$(Architecture).*'
|
|
||||||
destinationFolder: $(Build.BinariesDirectory)
|
|
||||||
cleanDestinationFolder: false
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Apply build artifact to the local machines'
|
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: |
|
|
||||||
if ("$(Platform)" -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
|
|
||||||
workingDirectory: '$(Build.BinariesDirectory)'
|
|
||||||
|
|
||||||
- task: GoTool@0
|
|
||||||
inputs:
|
|
||||||
version: '$(Version)'
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Wait for the logs'
|
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: |
|
|
||||||
Write-Host "Fake step that do nothing"
|
|
||||||
Write-Host "We need it because log of previous step 'Use Go' is not available here yet."
|
|
||||||
Write-Host "In testing step (Go.Tests.ps1) we analyze build log of 'GoTool' task"
|
|
||||||
Write-Host "to determine if Go version was consumed from cache and was downloaded"
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
|
||||||
displayName: 'Run tests'
|
|
||||||
inputs:
|
|
||||||
TargetType: inline
|
|
||||||
script: |
|
|
||||||
Install-Module Pester -Force -Scope CurrentUser -RequiredVersion 4.10.1
|
|
||||||
Import-Module Pester
|
|
||||||
$pesterParams = @{
|
|
||||||
Path="./Go.Tests.ps1";
|
|
||||||
Parameters=@{
|
|
||||||
Version="$(Version)";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Invoke-Pester -Script $pesterParams -OutputFile "$(Build.SourcesDirectory)/tests/test_results.xml" -OutputFormat NUnitXml
|
|
||||||
workingDirectory: '$(Build.SourcesDirectory)/tests'
|
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
|
||||||
displayName: 'Publish test results'
|
|
||||||
inputs:
|
|
||||||
testResultsFiles: '*.xml'
|
|
||||||
testResultsFormat: NUnit
|
|
||||||
searchFolder: 'tests'
|
|
||||||
failTaskOnFailedTests: true
|
|
||||||
testRunTitle: "Go $(Version)-$(Platform)"
|
|
||||||
condition: always()
|
|
@ -1 +1 @@
|
|||||||
Subproject commit 1069e7a4ece355bd321909454fc1f9f7244eb03b
|
Subproject commit 6f1aa3ce73ce0ea4b58995a63b56a8677607762a
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue