From 9ee0447715e44a174d02c1e9e9b9ac92917a4111 Mon Sep 17 00:00:00 2001
From: Boming Zhang <bomingzh@sjtu.edu.cn>
Date: Sun, 15 Sep 2024 22:27:06 -0400
Subject: [PATCH] ci: setup golang

---
 .gitea/workflows/build.yaml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 .gitea/workflows/build.yaml

diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml
new file mode 100644
index 0000000..71a2d6a
--- /dev/null
+++ b/.gitea/workflows/build.yaml
@@ -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