Skip to content

Commit

Permalink
run the right make target for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Jul 3, 2024
1 parent 7b9b836 commit aa2874e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions integration/helpers.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
package integration

import (
"fmt"
"os/exec"
"runtime"
)

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...)
}

Expand Down

0 comments on commit aa2874e

Please sign in to comment.