mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-09-28 20:22:09 +08:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
971a2c66c7 | ||
![]() |
b4e9e17925 | ||
![]() |
5de0e9734e | ||
![]() |
465c6031f8 |
8
.github/workflows/main.yaml
vendored
8
.github/workflows/main.yaml
vendored
@@ -12,13 +12,15 @@ jobs:
|
|||||||
# 1.20 是 Windows 7/8 Server 2008/2012 最后一个支持版本
|
# 1.20 是 Windows 7/8 Server 2008/2012 最后一个支持版本
|
||||||
image: goreleaser/goreleaser-cross:v1.20
|
image: goreleaser/goreleaser-cross:v1.20
|
||||||
steps:
|
steps:
|
||||||
|
- run: |
|
||||||
|
git config --global --add safe.directory /__w/ecs/ecs
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.22.4
|
go-version: 1.22.4
|
||||||
|
|
||||||
@@ -30,11 +32,11 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GHT }}
|
GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v4
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
args: release --clean
|
args: release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GHT }}
|
GITHUB_TOKEN: ${{ secrets.GHT }}
|
||||||
GOPRIVATE: github.com/oneclickvirt/security
|
GOPRIVATE: github.com/oneclickvirt/security
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
version: '2'
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy -v
|
- go mod tidy -v
|
||||||
@@ -26,6 +25,7 @@ builds:
|
|||||||
ignore:
|
ignore:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
goarch: arm
|
goarch: arm
|
||||||
|
main: ./
|
||||||
binary: goecs
|
binary: goecs
|
||||||
- id: darwin-amd64
|
- id: darwin-amd64
|
||||||
env:
|
env:
|
||||||
@@ -38,6 +38,7 @@ builds:
|
|||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
main: ./
|
||||||
binary: goecs
|
binary: goecs
|
||||||
- id: darwin-arm64
|
- id: darwin-arm64
|
||||||
env:
|
env:
|
||||||
@@ -50,6 +51,7 @@ builds:
|
|||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- arm64
|
- arm64
|
||||||
|
main: ./
|
||||||
binary: goecs
|
binary: goecs
|
||||||
universal_binaries:
|
universal_binaries:
|
||||||
- name_template: "goecs"
|
- name_template: "goecs"
|
||||||
|
@@ -12,7 +12,7 @@ Shell版本: https://github.com/spiritLHLS/ecs
|
|||||||
|
|
||||||
## 适配系统和架构
|
## 适配系统和架构
|
||||||
|
|
||||||
编译支持的架构: amd64、arm、arm64、386、s390x、ppc64、ppc64le、riscv64、mips、mips64、mipsle、mips64le、loong64
|
编译支持的架构: amd64、arm、arm64、386、s390x、mips、mipsle、s390x、riscv64
|
||||||
|
|
||||||
测试支持的架构: amd64、arm64
|
测试支持的架构: amd64、arm64
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ Shell version: https://github.com/spiritLHLS/ecs/blob/main/README_EN.md
|
|||||||
|
|
||||||
## Supported Systems and Architectures
|
## Supported Systems and Architectures
|
||||||
|
|
||||||
Architectures supported for compilation: amd64, arm, arm64, 386, s390x, ppc64, ppc64le, riscv64, mips, mips64, mipsle, mips64le, loong64
|
Architectures supported for compilation: amd64、arm、arm64、386、s390x、mips、mipsle、s390x、riscv64
|
||||||
|
|
||||||
Tested architectures: amd64, arm64
|
Tested architectures: amd64, arm64
|
||||||
|
|
||||||
|
2
goecs.go
2
goecs.go
@@ -37,7 +37,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ecsVersion = "v0.0.42"
|
ecsVersion = "v0.0.48"
|
||||||
menuMode bool
|
menuMode bool
|
||||||
onlyChinaTest bool
|
onlyChinaTest bool
|
||||||
input, choice string
|
input, choice string
|
||||||
|
@@ -8,7 +8,6 @@ git commit -am"update"
|
|||||||
|
|
||||||
:push
|
:push
|
||||||
cd %repo_path%
|
cd %repo_path%
|
||||||
|
|
||||||
git push -f origin master
|
git push -f origin master
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Push failed. Retrying in 3 seconds...
|
echo Push failed. Retrying in 3 seconds...
|
||||||
|
Reference in New Issue
Block a user