ci: setup golang

This commit is contained in:
张泊明518370910136 2024-09-15 22:27:06 -04:00
parent f4bc61654c
commit 9ee0447715
GPG Key ID: D47306D7062CDA9D

View File

@ -0,0 +1,21 @@
---
name: Build
on: [push]
jobs:
build:
container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim
steps:
- name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs
- name: Sanity Check
run: |
whoami
pwd
- name: Setup Go 1.23.1
uses: https://gitea.com/actions/setup-go@v5
with:
go-version: 1.23.1
- name: Display Go version
run: go version