From 40d4c5d077c3de3403ee1caa3701a30f816824d4 Mon Sep 17 00:00:00 2001 From: peefy Date: Wed, 24 Jul 2024 10:41:55 +0800 Subject: [PATCH] chore: add macos-14 tests Signed-off-by: peefy --- .github/workflows/main_darwin.yml | 2 +- pkg/runtime/init.go | 2 +- pkg/runtime/runtime.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main_darwin.yml b/.github/workflows/main_darwin.yml index fe6434ef..9c91cf1a 100644 --- a/.github/workflows/main_darwin.yml +++ b/.github/workflows/main_darwin.yml @@ -9,7 +9,7 @@ jobs: build-and-test: strategy: matrix: - os: [ macos-12, macos-13 ] + os: [ macos-12, macos-13, macos-14 ] runs-on: ${{ matrix.os }} steps: - name: Git checkout diff --git a/pkg/runtime/init.go b/pkg/runtime/init.go index e36aff74..3bc68ed0 100644 --- a/pkg/runtime/init.go +++ b/pkg/runtime/init.go @@ -48,7 +48,7 @@ func initRuntime(maxProc int) { // ping { - args := &gpyrpc.Ping_Args{Value: "ping: kcl-go rest-server"} + args := &gpyrpc.Ping_Args{Value: "echo"} resp, err := client.Ping(args) if err != nil || resp.Value != args.Value { fmt.Println("Init kcl runtime failed, path: ", MustGetKclvmPath()) diff --git a/pkg/runtime/runtime.go b/pkg/runtime/runtime.go index 249eb2e5..dc95a28b 100644 --- a/pkg/runtime/runtime.go +++ b/pkg/runtime/runtime.go @@ -47,6 +47,7 @@ func (p *Runtime) Start() { p.mu.Lock() defer p.mu.Unlock() + // Try to get the runtime // if !env.GetDisableInstallArtifact() { // // Get the install lib path. // path := path.LibPath()