From c3bc0d6ac0fe9e14daf15cb7011fa56deda94610 Mon Sep 17 00:00:00 2001 From: Anton Kuznetcov Date: Mon, 28 Jul 2025 17:58:05 +0600 Subject: [PATCH] Release v1.0.40 --- .gitea/workflows/build.yaml | 32 ++++++++------------------------ main.go | 2 +- makefile | 2 +- 3 files changed, 10 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a3c8b52..2917fa4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,50 +32,34 @@ jobs: mkdir -p bin echo "Building for all platforms..." - mv usr/local/bin/quick-build quick-build.sh - chmod +x quick-build.sh - - # Build for all platforms + # Build for all platforms using direct go build commands echo "Building for linux amd64..." - quick-build.sh linux amd64 + GOOS=linux GOARCH=amd64 go build -o bin/hello-api-linux-amd64 main.go echo "Building for linux arm64..." - quick-build.sh linux arm64 + GOOS=linux GOARCH=arm64 go build -o bin/hello-api-linux-arm64 main.go echo "Building for windows amd64..." - quick-build.sh windows amd64 + GOOS=windows GOARCH=amd64 go build -o bin/hello-api-windows-amd64.exe main.go echo "Building for darwin amd64..." - quick-build.sh darwin amd64 - - echo "Building for darwin arm64..." - quick-build.sh darwin arm64 + GOOS=darwin GOARCH=amd64 go build -o bin/hello-api-darwin-amd64 main.go - echo "Listing bin directory..." - ls -la bin + echo "Building for darwin arm64..." + GOOS=darwin GOARCH=arm64 go build -o bin/hello-api-darwin-arm64 main.go # Create archives echo "Creating archives..." cd bin # Create archives with correct file names - echo "Creating archives for linux amd64..." tar -czf hello-api-linux-amd64.tar.gz hello-api-linux-amd64 - - echo "Creating archives for linux arm64..." tar -czf hello-api-linux-arm64.tar.gz hello-api-linux-arm64 - - echo "Creating archives for windows amd64..." - mv hello-api-windows-amd64 hello-api-windows-amd64.exe tar -czf hello-api-windows-amd64.tar.gz hello-api-windows-amd64.exe - - echo "Creating archives for darwin amd64..." tar -czf hello-api-darwin-amd64.tar.gz hello-api-darwin-amd64 - - echo "Creating archives for darwin arm64..." tar -czf hello-api-darwin-arm64.tar.gz hello-api-darwin-arm64 - echo "Listing bin directory again ..." + echo "Listing bin directory..." ls -la - name: Create Release diff --git a/main.go b/main.go index 9a810df..f1c955e 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" ) -const version = "1.0.37" +const version = "1.0.40" // SystemInfo holds system information type SystemInfo struct { diff --git a/makefile b/makefile index f22c7ab..cb321c0 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ BIN_DIR=bin APP_NAME=hello-api -VERSION=1.0.37 +VERSION=1.0.40 build: mkdir -p $(BIN_DIR)