Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c3bc0d6ac0 | |||
d1c63de5d1 |
@@ -32,47 +32,34 @@ jobs:
|
|||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
echo "Building for all platforms..."
|
echo "Building for all platforms..."
|
||||||
|
|
||||||
# Build for all platforms
|
# Build for all platforms using direct go build commands
|
||||||
echo "Building for linux amd64..."
|
echo "Building for linux amd64..."
|
||||||
quick-build linux amd64
|
GOOS=linux GOARCH=amd64 go build -o bin/hello-api-linux-amd64 main.go
|
||||||
|
|
||||||
echo "Building for linux arm64..."
|
echo "Building for linux arm64..."
|
||||||
quick-build linux arm64
|
GOOS=linux GOARCH=arm64 go build -o bin/hello-api-linux-arm64 main.go
|
||||||
|
|
||||||
echo "Building for windows amd64..."
|
echo "Building for windows amd64..."
|
||||||
quick-build windows amd64
|
GOOS=windows GOARCH=amd64 go build -o bin/hello-api-windows-amd64.exe main.go
|
||||||
|
|
||||||
echo "Building for darwin amd64..."
|
echo "Building for darwin amd64..."
|
||||||
quick-build darwin amd64
|
GOOS=darwin GOARCH=amd64 go build -o bin/hello-api-darwin-amd64 main.go
|
||||||
|
|
||||||
echo "Building for darwin arm64..."
|
|
||||||
quick-build darwin arm64
|
|
||||||
|
|
||||||
echo "Listing bin directory..."
|
echo "Building for darwin arm64..."
|
||||||
ls -la bin
|
GOOS=darwin GOARCH=arm64 go build -o bin/hello-api-darwin-arm64 main.go
|
||||||
|
|
||||||
# Create archives
|
# Create archives
|
||||||
echo "Creating archives..."
|
echo "Creating archives..."
|
||||||
cd bin
|
cd bin
|
||||||
|
|
||||||
# Create archives with correct file names
|
# Create archives with correct file names
|
||||||
echo "Creating archives for linux amd64..."
|
|
||||||
tar -czf hello-api-linux-amd64.tar.gz hello-api-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
|
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
|
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
|
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
|
tar -czf hello-api-darwin-arm64.tar.gz hello-api-darwin-arm64
|
||||||
|
|
||||||
echo "Listing bin directory again ..."
|
echo "Listing bin directory..."
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
2
main.go
2
main.go
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "1.0.36"
|
const version = "1.0.40"
|
||||||
|
|
||||||
// SystemInfo holds system information
|
// SystemInfo holds system information
|
||||||
type SystemInfo struct {
|
type SystemInfo struct {
|
||||||
|
Reference in New Issue
Block a user