ci: use golang-ubuntu-latest runner image
All checks were successful
push / build (push) Successful in 37s

This commit is contained in:
张泊明518370910136 2024-10-12 06:47:54 -04:00
parent da7f6b87e6
commit cb0f52adb9
GPG Key ID: CA088E6D9284F870

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.1.linux-amd64.tar.gz
rm -rf /usr/local/go
tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz
rm -rf go1.23.1.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