diff --git a/.github/workflows/PR-build.yml b/.github/workflows/PR-build.yml index ec4b07249c..35cd5cfa80 100644 --- a/.github/workflows/PR-build.yml +++ b/.github/workflows/PR-build.yml @@ -113,14 +113,14 @@ jobs: - name: Cache binaries id: cached_binaries if: needs.changes.outputs.build == 'true' - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached-binaries-${{ matrix.os }}-${{ github.sha }}" path: go.mod - name: Cache build output if: steps.cached_binaries.outputs.cache-hit != 'true' && needs.changes.outputs.build == 'true' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ matrix.cache-path }} key: v1-go-pkg-mod-${{ matrix.os }}-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/ec2-integration-test.yml b/.github/workflows/ec2-integration-test.yml index 95489d0f41..6a12cbe50b 100644 --- a/.github/workflows/ec2-integration-test.yml +++ b/.github/workflows/ec2-integration-test.yml @@ -67,7 +67,7 @@ jobs: - name: Cache if success id: cache_if_success - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ${{inputs.region}}-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 55a8ef8a03..407e00c547 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -156,7 +156,7 @@ jobs: - name: Cache if success id: cf-integration-test - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: go.mod key: "cf-integration-${{ github.sha }}-test" @@ -246,7 +246,7 @@ jobs: - name: Cache if success id: ec2-linux-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ec2-nvidia-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -464,7 +464,7 @@ jobs: - name: Cache if success id: ec2-win-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ec2-win-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -546,7 +546,7 @@ jobs: - name: Cache if success id: ec2-mac-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ec2-mac-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -678,7 +678,7 @@ jobs: - name: Cache if success id: ecs-ec2-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ecs-ec2-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }} @@ -761,7 +761,7 @@ jobs: - name: Cache if success id: ecs-fargate-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ecs-fargate-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }} @@ -839,7 +839,7 @@ jobs: - name: Cache if success id: eks-ec2-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ${{ matrix.arrays.terraform_dir }}-${{ matrix.arrays.k8s_version }}-${{ matrix.arrays.instanceType }}-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }} @@ -921,7 +921,7 @@ jobs: - name: Cache if success id: eks-ec2-integration-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: eks-ec2-integration-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.test_dir }} @@ -1001,7 +1001,7 @@ jobs: - name: Cache if success id: performance-tracking - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: performance-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -1069,7 +1069,7 @@ jobs: - name: Cache if success id: performance-tracking - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: performance-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -1137,7 +1137,7 @@ jobs: - name: Cache if success id: stress-tracking - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: stress-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} @@ -1207,7 +1207,7 @@ jobs: - name: Cache if success id: ec2-win-stress-tracking-test - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: go.mod key: ec2-win-stress-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} diff --git a/.github/workflows/test-build-docker.yml b/.github/workflows/test-build-docker.yml index 25487a811e..510299d039 100644 --- a/.github/workflows/test-build-docker.yml +++ b/.github/workflows/test-build-docker.yml @@ -67,7 +67,7 @@ jobs: - name: Cache container id: cached_container - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_container_${{ github.sha }}" path: go.mod @@ -148,7 +148,7 @@ jobs: - name: Cache win zip id: cached_win_zip - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_win_zip_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}" path: go.mod @@ -201,7 +201,7 @@ jobs: - name: Cache msi id: cached_msi - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_msi_${{ github.sha }}" path: go.mod @@ -276,7 +276,7 @@ jobs: - name: Cache msi id: cached_msi - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_msi_${{ github.sha }}" path: go.mod @@ -412,7 +412,7 @@ jobs: - name: Cache sig id: cached_sig - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_sig_${{ github.sha }}" path: go.mod diff --git a/.github/workflows/test-build-packages.yml b/.github/workflows/test-build-packages.yml index c2e4e3c1b9..735593f348 100644 --- a/.github/workflows/test-build-packages.yml +++ b/.github/workflows/test-build-packages.yml @@ -90,14 +90,14 @@ jobs: - name: Cache binaries id: cached_binaries - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached-binaries-${{ runner.os }}-${{ inputs.BucketKey }}" path: go.mod - name: Cache pkg if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/Library/Caches/go-build @@ -154,7 +154,7 @@ jobs: - name: Cache sig id: cached_sig - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_sig_${{ github.sha }}" path: go.mod diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 9a4f68fa4f..3198ac66e8 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -89,7 +89,7 @@ jobs: - name: Cache binaries id: cached_binaries - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: "cached_binaries_${{ github.sha }}_${{ inputs.PackageBucketKey }}_${{ inputs.Bucket }}_${{ inputs.BucketKey }}" path: go.mod @@ -97,7 +97,7 @@ jobs: - name: Cache go # Only skip for integration builds not release builds. if: contains(inputs.BucketKey, 'test') == false || steps.cached_binaries.outputs.cache-hit == false - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/go/pkg/mod