-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Release-1.27] June Testing Backports (#6157)
* Fix loadManifests function (#6058) Signed-off-by: Derek Nola <[email protected]> * Slim down E2E artifacts (#6097) * Don't use rke2-runtime.tar in e2e Signed-off-by: Derek Nola <[email protected]> * Don't upload rke2-runtime.tar Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Derek Nola <[email protected]> * Add custom golang setup action for better caching (#6144) Signed-off-by: Derek Nola <[email protected]> * Support MixedOS E2E local testing (#6137) * Consolidate CreateWindowsCluster test function Signed-off-by: Derek Nola <[email protected]> * Support local windows builds in mixedOS e2e test Signed-off-by: Derek Nola <[email protected]> * Add mixedos to E2E CI Signed-off-by: Derek Nola <[email protected]> * Simplify local cluster provisioning with libvirt native parallel bringup Signed-off-by: Derek Nola <[email protected]> * Don't run mixedOS on E2E Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Derek Nola <[email protected]> --------- Signed-off-by: Derek Nola <[email protected]>
- Loading branch information
Showing
17 changed files
with
216 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Setup golang with master only caching' | ||
description: 'A composite action that installs golang, but with a caching strategy that only updates the cache on master branch.' | ||
inputs: | ||
go-version: | ||
description: 'Override the version of Go to install.' | ||
required: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
if: inputs.go-version == '' | ||
with: | ||
go-version-file: 'go.mod' # Just use whatever version is in the go.mod file | ||
cache: ${{ github.ref == 'refs/heads/master' }} | ||
|
||
- uses: actions/setup-go@v5 | ||
if: inputs.go-version != '' | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
cache: ${{ github.ref == 'refs/heads/master' }} | ||
|
||
- name: Prepare for go cache | ||
if: ${{ github.ref != 'refs/heads/master' }} | ||
shell: bash | ||
run: | | ||
echo "GO_CACHE=$(go env GOCACHE)" | tee -a "$GITHUB_ENV" | ||
echo "GO_MODCACHE=$(go env GOMODCACHE)" | tee -a "$GITHUB_ENV" | ||
echo "GO_VERSION=$(go env GOVERSION | tr -d 'go')" | tee -a "$GITHUB_ENV" | ||
- name: Setup read-only cache | ||
if: ${{ github.ref != 'refs/heads/master' }} | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
${{ env.GO_MODCACHE }} | ||
${{ env.GO_CACHE }} | ||
# Match the cache key to the setup-go action https://github.com/actions/setup-go/blob/main/src/cache-restore.ts#L34 | ||
key: setup-go-${{ runner.os }}-${{ env.ImageOS }}-go-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.