diff --git a/.github/workflows/golang-test-darwin.yml b/.github/workflows/golang-test-darwin.yml index 860b79686..58ddde6b1 100644 --- a/.github/workflows/golang-test-darwin.yml +++ b/.github/workflows/golang-test-darwin.yml @@ -18,7 +18,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index cd640a376..2c79c052a 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -30,7 +30,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Get Go environment @@ -109,7 +109,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -154,7 +154,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -223,7 +223,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -273,7 +273,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -324,7 +324,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -411,7 +411,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -500,7 +500,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code @@ -564,7 +564,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Checkout code diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml index d6db21039..43357c45f 100644 --- a/.github/workflows/golang-test-windows.yml +++ b/.github/workflows/golang-test-windows.yml @@ -24,7 +24,7 @@ jobs: uses: actions/setup-go@v5 id: go with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Get Go environment diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d45a13aea..c524f6f6b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -46,7 +46,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" cache: false - name: Install dependencies if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/mobile-build-validation.yml b/.github/workflows/mobile-build-validation.yml index 9a403807a..02f3b88b8 100644 --- a/.github/workflows/mobile-build-validation.yml +++ b/.github/workflows/mobile-build-validation.yml @@ -20,7 +20,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" - name: Setup Android SDK uses: android-actions/setup-android@v3 with: @@ -56,7 +56,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" - name: install gomobile run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20240404231514-09dbf07665ed - name: gomobile init diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2ca95daa..cab4c7f06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.24" + go-version-file: "go.mod" cache: false - name: Cache Go modules uses: actions/cache@v4 @@ -136,7 +136,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.24" + go-version-file: "go.mod" cache: false - name: Cache Go modules uses: actions/cache@v4 @@ -200,7 +200,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.24" + go-version-file: "go.mod" cache: false - name: Cache Go modules uses: actions/cache@v4 diff --git a/.github/workflows/test-infrastructure-files.yml b/.github/workflows/test-infrastructure-files.yml index 7645478a4..c0c2176ea 100644 --- a/.github/workflows/test-infrastructure-files.yml +++ b/.github/workflows/test-infrastructure-files.yml @@ -70,7 +70,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" - name: Cache Go modules uses: actions/cache@v4 diff --git a/.github/workflows/wasm-build-validation.yml b/.github/workflows/wasm-build-validation.yml index 3e6fde331..51dee7aa2 100644 --- a/.github/workflows/wasm-build-validation.yml +++ b/.github/workflows/wasm-build-validation.yml @@ -20,7 +20,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" - name: Install dependencies run: sudo apt update && sudo apt install -y -q libgtk-3-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev libpcap-dev - name: Install golangci-lint @@ -45,7 +45,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.x" + go-version-file: "go.mod" - name: Build Wasm client run: GOOS=js GOARCH=wasm go build -o netbird.wasm ./client/wasm/cmd env: