fix:修复编译占用的磁盘过大的问题

This commit is contained in:
spiritlhl
2026-01-13 11:49:57 +08:00
parent e4a759fceb
commit 5b44f5f651
2 changed files with 28 additions and 2 deletions
+23 -2
View File
@@ -19,10 +19,26 @@ jobs:
with:
fetch-depth: 0
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.25.3
go-version: 1.25.4
- name: Configure Git for Private Modules
run: |
@@ -31,13 +47,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
- name: Clean Go cache before build
run: |
go clean -cache -modcache -testcache
df -h
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
# version: latest
version: '~> v2'
args: release
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GHT }}
GOPRIVATE: github.com/oneclickvirt/security,github.com/oneclickvirt/privatespeedtest
+5
View File
@@ -1,6 +1,11 @@
before:
hooks:
- go mod tidy -v
- go clean -cache
# 添加并行构建限制以减少磁盘占用
project_name: goecs
builds:
- id: universal
env: