diff --git a/.github/workflows/azure-e2e-test.yml b/.github/workflows/azure-e2e-test.yml index bf3b7fd9d..863409934 100644 --- a/.github/workflows/azure-e2e-test.yml +++ b/.github/workflows/azure-e2e-test.yml @@ -41,15 +41,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Extract go version number - run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV" - - - name: Set up Go environment - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - cache-dependency-path: go.sum - - uses: azure/login@v2 name: 'Az CLI login' with: @@ -60,11 +51,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Install build dependencies - run: | - sudo apt-get update -y - sudo apt-get install -y libvirt-dev - - name: Build container image id: build-container env: @@ -104,7 +90,8 @@ jobs: - name: Set up Go environment uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version: "${{ env.GO_VERSION }}" + cache-dependency-path: "**/go.sum" - name: Set Provisioner Environment Variables run: | @@ -190,6 +177,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install cidr calculator run: | diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 34df6a18a..fc1028f6d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,6 +36,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install build dependencies if: matrix.type == 'dev' run: | @@ -91,6 +92,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install build dependencies if: matrix.controller == 'peerpod-ctrl' @@ -135,6 +137,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -181,6 +184,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/caa_build_and_push.yaml b/.github/workflows/caa_build_and_push.yaml index de366ce57..f677946f3 100644 --- a/.github/workflows/caa_build_and_push.yaml +++ b/.github/workflows/caa_build_and_push.yaml @@ -73,6 +73,8 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Install build dependencies diff --git a/.github/workflows/caa_build_and_push_per_arch.yaml b/.github/workflows/caa_build_and_push_per_arch.yaml index 3c141a95e..3b9144a24 100644 --- a/.github/workflows/caa_build_and_push_per_arch.yaml +++ b/.github/workflows/caa_build_and_push_per_arch.yaml @@ -92,6 +92,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/csi_wrapper_images.yaml b/.github/workflows/csi_wrapper_images.yaml index cdf463992..5a39880c3 100644 --- a/.github/workflows/csi_wrapper_images.yaml +++ b/.github/workflows/csi_wrapper_images.yaml @@ -50,6 +50,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to quay Container Registry diff --git a/.github/workflows/e2e_libvirt.yaml b/.github/workflows/e2e_libvirt.yaml index ca5d726e5..d44a3d08f 100644 --- a/.github/workflows/e2e_libvirt.yaml +++ b/.github/workflows/e2e_libvirt.yaml @@ -60,6 +60,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Setup docker run: | diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 577dcd09f..df7a22f83 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -30,6 +30,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install dependencies run: | sudo apt-get update -y @@ -56,6 +57,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install dependencies run: | sudo apt-get update -y @@ -97,6 +99,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Go tidy check run: make tidy-check @@ -115,6 +118,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Install dependencies run: | sudo apt-get update -y diff --git a/.github/workflows/webhook_image.yaml b/.github/workflows/webhook_image.yaml index a9206103f..981d7e44b 100644 --- a/.github/workflows/webhook_image.yaml +++ b/.github/workflows/webhook_image.yaml @@ -45,6 +45,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache-dependency-path: "**/go.sum" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to quay Container Registry