1 Commits

Author SHA1 Message Date
9e431a00ce Release v1.0.36
Some checks failed
Release Build / create-release (push) Failing after 6m14s
Release Build / create-docker-image (push) Has been skipped
Release Build / update-to-release-branch (push) Has been skipped
2025-07-28 17:44:23 +06:00
3 changed files with 24 additions and 11 deletions

View File

@@ -31,36 +31,49 @@ jobs:
cd hello_gitea
mkdir -p bin
echo "Building for all platforms..."
# Build for all platforms
echo "Building for linux amd64..."
quick-build linux amd64
echo "Building for linux arm64..."
quick-build linux arm64
echo "Building for windows amd64..."
quick-build windows amd64
echo "Building for darwin amd64..."
quick-build darwin amd64
echo "Building for darwin arm64..."
quick-build darwin arm64
# Build for all platforms - old variant
# GOOS=linux GOARCH=amd64 go build -o bin/hello-api-linux-amd64 main.go
# GOOS=linux GOARCH=arm64 go build -o bin/hello-api-linux-arm64 main.go
# GOOS=windows GOARCH=amd64 go build -o bin/hello-api-windows-amd64.exe main.go
# GOOS=darwin GOARCH=amd64 go build -o bin/hello-api-darwin-amd64 main.go
# GOOS=darwin GOARCH=arm64 go build -o bin/hello-api-darwin-arm64 main.go
echo "Listing bin directory..."
ls -la bin
# 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..."
ls -la bin
echo "Listing bin directory again ..."
ls -la
- name: Create Release
run: |

View File

@@ -11,7 +11,7 @@ import (
"github.com/gin-gonic/gin"
)
const version = "1.0.35"
const version = "1.0.36"
// SystemInfo holds system information
type SystemInfo struct {

View File

@@ -2,7 +2,7 @@
BIN_DIR=bin
APP_NAME=hello-api
VERSION=1.0.35
VERSION=1.0.36
build:
mkdir -p $(BIN_DIR)