diff --git a/.github/workflows/build-test-macos-arm64.yml b/.github/workflows/build-test-macos-arm64.yml index 15ec91a30..1234f4aa4 100644 --- a/.github/workflows/build-test-macos-arm64.yml +++ b/.github/workflows/build-test-macos-arm64.yml @@ -14,11 +14,6 @@ jobs: with: submodules: "true" - - name: Set up Go 1.21 - uses: actions/setup-go@v2 - with: - go-version: 1.21 - - run: clang --version - run: cargo --version - run: rustc --print sysroot diff --git a/.github/workflows/macos_test.yaml b/.github/workflows/macos_test.yaml index ec4c1d8d5..6d7096d46 100644 --- a/.github/workflows/macos_test.yaml +++ b/.github/workflows/macos_test.yaml @@ -21,11 +21,14 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.21 + go-version: 1.23 - name: Install KCL CLI - run: go install kcl-lang.io/cli/cmd/kcl@main - + run: | + go install kcl-lang.io/cli/cmd/kcl@main + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH + - run: clang --version - run: cargo --version - run: rustc --print sysroot diff --git a/.github/workflows/ubuntu_test.yaml b/.github/workflows/ubuntu_test.yaml index cf907faa9..25558a2bd 100644 --- a/.github/workflows/ubuntu_test.yaml +++ b/.github/workflows/ubuntu_test.yaml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.21 + go-version: 1.23 # Prerequisite @@ -52,7 +52,10 @@ jobs: run: export PATH=$PATH:$PWD/../_build/dist/ubuntu/kclvm/bin && make test-runtime shell: bash - name: Install KCL CLI - run: go install kcl-lang.io/cli/cmd/kcl@main + run: | + go install kcl-lang.io/cli/cmd/kcl@main + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH - name: Unit test working-directory: ./kclvm diff --git a/.github/workflows/windows_test.yaml b/.github/workflows/windows_test.yaml index ea187619f..9e25cb4b9 100644 --- a/.github/workflows/windows_test.yaml +++ b/.github/workflows/windows_test.yaml @@ -16,10 +16,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.21 + go-version: 1.23 - name: Install KCL - run: go install kcl-lang.io/cli/cmd/kcl@main + shell: powershell + run: | + go install kcl-lang.io/cli/cmd/kcl@main + $GoPath = go env GOPATH + $GoInstallBin = Join-Path $GoPath "bin" + $Env:PATH += ";$GoInstallBin" + $Env:PATH += ";${{ github.workspace }}\go\bin" - uses: ilammy/msvc-dev-cmd@v1