Compare commits
No commits in common. "3355683609b482e244566b84b208bd389e6bebb2" and "4c74af43be8dbeca5f858d222508ee5924dcaac4" have entirely different histories.
3355683609
...
4c74af43be
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
name: Submodules Sync
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
container:
|
||||
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest
|
||||
volumes:
|
||||
- /home/actions/.ssh:/root/.ssh
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://gitea.com/BoYanZh/checkout@focs
|
||||
- name: Git Submodule Update
|
||||
run: |
|
||||
git pull --recurse-submodules
|
||||
git submodule update --remote --recursive
|
||||
- name: Set up Git
|
||||
run: |
|
||||
git config --global user.name "gitea-actions[bot]"
|
||||
git config --global user.email "gitea-actions[bot]@users.noreply.gitea.com"
|
||||
chown -R root:root /root/.ssh
|
||||
- name: Commit update
|
||||
run: |
|
||||
git commit -am "chore: update submodule references" && git push || echo "No changes to commit"
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
|
@ -26,12 +26,12 @@ repos:
|
|||
entry: make build
|
||||
language: system
|
||||
always_run: true
|
||||
stages: [pre-commit]
|
||||
stages: [commit]
|
||||
pass_filenames: false
|
||||
- id: make-test
|
||||
name: make test
|
||||
entry: make test
|
||||
language: system
|
||||
always_run: true
|
||||
stages: [pre-commit]
|
||||
stages: [commit]
|
||||
pass_filenames: false
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
1. Make sure you are in a Unix-like OS (Linux, MacOS). For Windows, use [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install).
|
||||
|
||||
2. Install [Go](https://go.dev/doc/install). Also, make sure `make` and `git` are installed and all 3 programs are presented in `$PATH`.
|
||||
- If you have problem on connecting to the Go website and Go packages, download Go from [studygolang](https://studygolang.com/dl) and run `go env -w GOPROXY=https://goproxy.io,direct` to set the Go modules mirror proxy after installing Go.
|
||||
|
||||
3. Enable cgroup v2 for your OS. Check [here](https://stackoverflow.com/a/73376219/13724598). So that you do not need root permission to run `go-judge`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user