ci: build & push
Some checks failed
push / build (push) Failing after 29s

This commit is contained in:
张泊明518370910136 2024-09-26 01:41:08 -04:00
parent 094f473871
commit a56f87feda
GPG Key ID: CA088E6D9284F870
5 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,32 @@
---
name: push
on:
push:
branches:
- actions
jobs:
build:
container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
steps:
- name: Check out repository code
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
run: go version
- name: Prepare
run: |
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
- name: Build
run: make build
- name: Check images
run: docker ps -a
- name: Push
run: make push

3
.gitignore vendored
View File

@ -1 +1,2 @@
/bin/joj3 /bin/*
!/bin/joj3-teapot

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "JOJ3"]
path = JOJ3
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3.git

1
JOJ3 Submodule

@ -0,0 +1 @@
Subproject commit 1bb0ddd253092895405d02e66ff089743735c941

View File

@ -3,6 +3,9 @@
all: build all: build
build: build:
git submodule update --init --remote
$(MAKE) -C JOJ3
cp JOJ3/build/* bin/
docker build -t focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim . docker build -t focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim .
push: push: