ci: setup golang
This commit is contained in:
parent
f4bc61654c
commit
9ee0447715
21
.gitea/workflows/build.yaml
Normal file
21
.gitea/workflows/build.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user