Skip to content

Commit

Permalink
chore: add go install kcl into PATH
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 13, 2024
1 parent b985908 commit 0ea67bb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 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.23

- run: clang --version
- run: cargo --version
- run: rustc --print sysroot
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/macos_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
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
5 changes: 4 additions & 1 deletion .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
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
8 changes: 7 additions & 1 deletion .github/workflows/windows_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
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 0ea67bb

Please sign in to comment.