Skip to content

Commit

Permalink
chore: bump go version to 1.23 and add go apth to github path
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Sep 13, 2024
1 parent d61eeb2 commit 35d5469
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-test-macos-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/macos_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
go-version: 1.23

# Prerequisite

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/windows_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 35d5469

Please sign in to comment.