Files
test/.gitea/workflows/test.yaml
YGXB_net 11e8c48f4d
All checks were successful
构建上传工具 / build-tool (push) Successful in 16s
更新 .gitea/workflows/test.yaml
2025-10-13 15:22:01 +00:00

30 lines
744 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 构建上传工具
on: [ push ]
jobs:
build-tool:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 安装Go镜像
run: |
# 使用国内镜像下载 Go
wget https://mirrors.aliyun.com/golang/go1.25.1.linux-amd64.tar.gz -O go.tar.gz
# 解压并设置环境变量
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
env:
GOROOT: /usr/local/go
- name: test
run: |
cd ~
pwd
go env GOMODCACHE
go env GOCACHE
go env GOPATH