From aa2874e41ea7bc05e262e96ecabc10b6ea54e5c5 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Wed, 3 Jul 2024 09:53:44 -0400 Subject: [PATCH] run the right make target for windows Signed-off-by: Grant Linville --- .github/workflows/integration.yaml | 4 ++++ integration/helpers.go | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index e5018275..e0b78be2 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -31,6 +31,10 @@ jobs: cache: false go-version: "1.22" - name: Build + if: matrix.os == 'ubuntu-22.04' run: make build + - name: build-windows + if: matrix.os == 'windows-latest' + run: make build-exe - name: Run Integration Tests run: make integration \ No newline at end of file diff --git a/integration/helpers.go b/integration/helpers.go index dad94ab6..8af581c3 100644 --- a/integration/helpers.go +++ b/integration/helpers.go @@ -1,7 +1,6 @@ package integration import ( - "fmt" "os/exec" "runtime" ) @@ -9,10 +8,6 @@ import ( func GPTScriptExec(args ...string) (string, error) { cmd := exec.Command("../bin/gptscript", args...) if runtime.GOOS == "windows" { - err := exec.Command("rename", "..\\bin\\gptscript", "gptscript.exe").Run() - if err != nil { - fmt.Println(err.Error()) - } cmd = exec.Command("..\\bin\\gptscript.exe", args...) }