summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/cd.yml9
-rw-r--r--cmd/client/main.go2
2 files changed, 3 insertions, 8 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 0c6c58a..aeeea19 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -12,13 +12,8 @@ jobs:
timeout-minutes: 5
steps:
- - name: Check out code
- uses: actions/checkout@v4
-
- - name: Set up Go
- uses: actions/setup-go@v5
- with:
- go-version: "1.23.2"
+ - name: Runs CI (will checkout the repo)
+ uses: ./.github/workflows/ci.yml
- name: Build executable
run: GOOS=linux GOARCH=amd64 go build ./cmd/server -o ./eko-server
diff --git a/cmd/client/main.go b/cmd/client/main.go
index d33120b..efac6f3 100644
--- a/cmd/client/main.go
+++ b/cmd/client/main.go
@@ -7,7 +7,7 @@ import (
"github.com/kyren223/eko/internal/client"
)
-func main() {
+func main(){
logFile, err := os.OpenFile("client.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0600)
if err != nil {
log.Fatalln(err)