Compare commits

...

6 Commits

Author SHA1 Message Date
spiritlhl
df6d1236cc fix: 暂时注释调freebsd进行编译 2025-07-17 03:12:06 +00:00
spiritlhl
7c64102581 fix: 修复头文件导入 2025-07-17 03:07:18 +00:00
spiritlhl
58cb4f3831 fix: 修复头文件导入 2025-07-17 03:04:13 +00:00
spiritlhl
20bddae048 fix: 更新版本 2025-07-17 02:49:04 +00:00
spiritlhl
3c0590ca8d fix: 删除暂不适配的freebsd-arm 2025-07-17 02:43:28 +00:00
spiritlhl
a752eeeeb0 fix: 修复配置错配 2025-07-17 02:26:32 +00:00
5 changed files with 98 additions and 99 deletions

View File

@@ -1,7 +1,6 @@
name: Goreleaser
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
@@ -33,6 +32,25 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
- name: Install missing cross-compilation tools
run: |
echo "Installing missing cross-compilation tools..."
apt-get update
apt-get install -y gcc-multilib g++-multilib
dpkg --add-architecture i386
apt-get update
apt-get install -y \
linux-libc-dev \
gcc-aarch64-linux-gnu \
gcc-riscv64-linux-gnu \
gcc-mips64-linux-gnuabi64 \
gcc-mips64el-linux-gnuabi64 \
gcc-powerpc64le-linux-gnu \
gcc-mingw-w64-x86-64 \
gcc-mingw-w64-i686 \
libc6-dev-i386 \
|| echo "Some packages may already be installed"
- name: Verify cross-compilation tools
run: |
echo "Checking available cross-compilation tools..."
@@ -61,25 +79,6 @@ jobs:
echo "=== OSXCross directory ==="
ls -la /usr/osxcross/bin/ 2>/dev/null || echo "OSXCross not found in /usr/osxcross/bin/"
- name: Install missing cross-compilation tools
run: |
echo "Installing missing cross-compilation tools..."
apt-get update
apt-get install -y gcc-multilib g++-multilib
dpkg --add-architecture i386
apt-get update
apt-get install -y \
linux-libc-dev \
gcc-aarch64-linux-gnu \
gcc-riscv64-linux-gnu \
gcc-mips64-linux-gnuabi64 \
gcc-mips64el-linux-gnuabi64 \
gcc-powerpc64le-linux-gnu \
gcc-mingw-w64-x86-64 \
gcc-mingw-w64-i686 \
libc6-dev-i386 \
|| echo "Some packages may already be installed"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:

View File

@@ -29,9 +29,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/amd64 (CGO)"
- echo "Starting build for linux/amd64 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/amd64 (CGO)"
- echo "Successfully built linux/amd64 (CGO)"
- echo "---"
# Linux 386 with CGO
@@ -53,9 +53,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/386 (CGO)"
- echo "Starting build for linux/386 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/386 (CGO)"
- echo "Successfully built linux/386 (CGO)"
- echo "---"
# Linux ARM64 with CGO
@@ -78,9 +78,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/arm64 (CGO)"
- echo "Starting build for linux/arm64 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/arm64 (CGO)"
- echo "Successfully built linux/arm64 (CGO)"
- echo "---"
# Windows AMD64 with CGO
@@ -103,9 +103,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for windows/amd64 (CGO)"
- echo "Starting build for windows/amd64 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built windows/amd64 (CGO)"
- echo "Successfully built windows/amd64 (CGO)"
- echo "---"
# Windows 386 with CGO
@@ -128,9 +128,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for windows/386 (CGO)"
- echo "Starting build for windows/386 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built windows/386 (CGO)"
- echo "Successfully built windows/386 (CGO)"
- echo "---"
# Darwin AMD64 with CGO
@@ -154,12 +154,12 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for darwin/amd64 (CGO)"
- echo "Starting build for darwin/amd64 (CGO)"
- echo "Checking osxcross tools..."
- which o64-clang || echo "o64-clang not found"
- which o64-clang++ || echo "o64-clang++ not found"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built darwin/amd64 (CGO)"
- echo "Successfully built darwin/amd64 (CGO)"
- echo "---"
# Darwin ARM64 with CGO
@@ -183,12 +183,12 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for darwin/arm64 (CGO)"
- echo "Starting build for darwin/arm64 (CGO)"
- echo "Checking osxcross tools..."
- which oa64-clang || echo "oa64-clang not found"
- which oa64-clang++ || echo "oa64-clang++ not found"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built darwin/arm64 (CGO)"
- echo "Successfully built darwin/arm64 (CGO)"
- echo "---"
# Linux RISC-V 64 with CGO
@@ -210,9 +210,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/riscv64 (CGO)"
- echo "Starting build for linux/riscv64 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/riscv64 (CGO)"
- echo "Successfully built linux/riscv64 (CGO)"
- echo "---"
# Linux MIPS64 with CGO
@@ -234,9 +234,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/mips64 (CGO)"
- echo "Starting build for linux/mips64 (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/mips64 (CGO)"
- echo "Successfully built linux/mips64 (CGO)"
- echo "---"
# Linux MIPS64LE with CGO
@@ -258,9 +258,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/mips64le (CGO)"
- echo "Starting build for linux/mips64le (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/mips64le (CGO)"
- echo "Successfully built linux/mips64le (CGO)"
- echo "---"
# Linux PPC64LE with CGO
@@ -282,9 +282,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/ppc64le (CGO)"
- echo "Starting build for linux/ppc64le (CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/ppc64le (CGO)"
- echo "Successfully built linux/ppc64le (CGO)"
- echo "---"
# Linux ARM (no CGO)
@@ -308,9 +308,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/arm (no CGO)"
- echo "Starting build for linux/arm (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/arm (no CGO)"
- echo "Successfully built linux/arm (no CGO)"
- echo "---"
# Linux S390X (no CGO)
@@ -330,9 +330,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/s390x (no CGO)"
- echo "Starting build for linux/s390x (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/s390x (no CGO)"
- echo "Successfully built linux/s390x (no CGO)"
- echo "---"
# Linux MIPS (no CGO)
@@ -354,9 +354,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/mips (no CGO)"
- echo "Starting build for linux/mips (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/mips (no CGO)"
- echo "Successfully built linux/mips (no CGO)"
- echo "---"
# Linux MIPSLE (no CGO)
@@ -378,9 +378,9 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/mipsle (no CGO)"
- echo "Starting build for linux/mipsle (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/mipsle (no CGO)"
- echo "Successfully built linux/mipsle (no CGO)"
- echo "---"
# Linux PPC64 (no CGO)
@@ -400,54 +400,54 @@ builds:
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for linux/ppc64 (no CGO)"
- echo "Starting build for linux/ppc64 (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built linux/ppc64 (no CGO)"
- echo "Successfully built linux/ppc64 (no CGO)"
- echo "---"
# FreeBSD AMD64 (no CGO)
- id: freebsd-amd64-nocgo
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}} -checklinkname=0
flags:
- -trimpath
goos:
- freebsd
goarch:
- amd64
main: ./
binary: goecs
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for freebsd/amd64 (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built freebsd/amd64 (no CGO)"
- echo "---"
# # FreeBSD AMD64 (no CGO)
# - id: freebsd-amd64-nocgo
# env:
# - CGO_ENABLED=0
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.arch={{.Arch}} -checklinkname=0
# flags:
# - -trimpath
# goos:
# - freebsd
# goarch:
# - amd64
# main: ./
# binary: goecs
# no_unique_dist_dir: true
# hooks:
# pre:
# - echo "Starting build for freebsd/amd64 (no CGO)"
# post:
# - echo "Successfully built freebsd/amd64 (no CGO)"
# - echo "---"
# FreeBSD ARM64 (no CGO)
- id: freebsd-arm64-nocgo
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}} -checklinkname=0
flags:
- -trimpath
goos:
- freebsd
goarch:
- arm64
main: ./
binary: goecs
no_unique_dist_dir: true
hooks:
pre:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting build for freebsd/arm64 (no CGO)"
post:
- echo "[$(date '+%Y-%m-%d %H:%M:%S')] Successfully built freebsd/arm64 (no CGO)"
- echo "---"
# # FreeBSD ARM64 (no CGO)
# - id: freebsd-arm64-nocgo
# env:
# - CGO_ENABLED=0
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.arch={{.Arch}} -checklinkname=0
# flags:
# - -trimpath
# goos:
# - freebsd
# goarch:
# - arm64
# main: ./
# binary: goecs
# no_unique_dist_dir: true
# hooks:
# pre:
# - echo "Starting build for freebsd/arm64 (no CGO)"
# post:
# - echo "Successfully built freebsd/arm64 (no CGO)"
# - echo "---"
universal_binaries:
- name_template: "goecs"
@@ -477,8 +477,8 @@ checksum:
- linux-mips-nocgo
- linux-mipsle-nocgo
- linux-ppc64-nocgo
- freebsd-amd64-nocgo
- freebsd-arm64-nocgo
# - freebsd-amd64-nocgo
# - freebsd-arm64-nocgo
extra_files:
- glob: "./goecs.sh"
@@ -509,8 +509,8 @@ archives:
- linux-mips-nocgo
- linux-mipsle-nocgo
- linux-ppc64-nocgo
- freebsd-amd64-nocgo
- freebsd-arm64-nocgo
# - freebsd-amd64-nocgo
# - freebsd-arm64-nocgo
changelog:
sort: asc

View File

@@ -39,7 +39,7 @@ import (
)
var (
ecsVersion = "v0.1.56"
ecsVersion = "v0.1.58"
menuMode bool
onlyChinaTest bool
input, choice string