ci(build): use golang-ubuntu-latest image
All checks were successful
build / build (push) Successful in 1m44s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-10-11 00:31:44 -04:00
parent 8c5c8bf35b
commit 8265cc2e99
GPG Key ID: D47306D7062CDA9D

View File

@ -7,19 +7,12 @@ on:
jobs: jobs:
build: build:
container: container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:golang-ubuntu-latest
volumes: volumes:
- /home/actions/.ssh:/root/.ssh - /home/actions/.ssh:/root/.ssh
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs uses: https://gitea.com/BoYanZh/checkout@focs
- name: Setup Go 1.23.1
run: |
wget -q https://studygolang.com/dl/golang/go1.23.2.linux-amd64.tar.gz
rm -rf /usr/local/go
tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz
rm -rf go1.23.2.linux-amd64.tar.gz
echo "PATH=$PATH:/usr/local/go/bin:/root/go/bin" >> $GITHUB_ENV
- name: Display Go version - name: Display Go version
run: go version run: go version
- name: Prepare - name: Prepare
@ -27,13 +20,6 @@ jobs:
go env -w GO111MODULE=on go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct go env -w GOPROXY=https://goproxy.io,direct
chown -R root:root /root/.ssh chown -R root:root /root/.ssh
- name: Setup golangci-lint
run: |
wget -q https://ghp.ci/https://github.com/golangci/golangci-lint/releases/download/v1.61.0/golangci-lint-1.61.0-linux-amd64.tar.gz
tar -C /tmp -xzf golangci-lint-1.61.0-linux-amd64.tar.gz
rm -rf golangci-lint-1.61.0-linux-amd64.tar.gz
mkdir -p /root/go/bin
mv /tmp/golangci-lint-1.61.0-linux-amd64/golangci-lint /root/go/bin
- name: Setup Joint-Teapot - name: Setup Joint-Teapot
run: | run: |
pip install git+https://ghp.ci/https://github.com/BoYanZh/Joint-Teapot pip install git+https://ghp.ci/https://github.com/BoYanZh/Joint-Teapot