Skip to content

Commit 446e3f9

Browse files
author
田凯夫
committed
2023A
1 parent f36f35a commit 446e3f9

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

.github/workflows/github-autotest.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,39 @@ on:
66
jobs:
77
base-test:
88
runs-on: ubuntu-latest
9-
outputs:
10-
points: ${{ steps.end.outputs.points}}
9+
# outputs:
10+
# points: ${{ steps.end.outputs.points}}
1111
container:
1212
image: duskmoon/dev-env:ucore-ci
1313
steps:
1414
- uses: actions/checkout@v3
15-
- run: git clone https://github.com/LearningOS/uCore-Tutorial-Checker-2023S.git ucore-tutorial-ci
16-
- run: git clone https://github.com/LearningOS/uCore-Tutorial-Test-2023S.git ucore-tutorial-ci/workplace/user
15+
- run: git clone https://github.com/LearningOS/uCore-Tutorial-Checker-2023A.git ucore-tutorial-ci
16+
- run: git clone https://github.com/LearningOS/uCore-Tutorial-Test-2023A.git ucore-tutorial-ci/workplace/user
1717
- name: run test
1818
id: tester
19-
run: cd ucore-tutorial-ci && make test passwd=${{ secrets.BASE_TEST_TOKEN }} CHAPTER=`echo ${GITHUB_REF##*/} | grep -oP 'ch\K[0-9]'` > ../output.txt && cat ../output.txt
20-
- name: end
21-
id: end
22-
run: cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" >> $GITHUB_OUTPUT
23-
deploy:
24-
if: github.repository != 'LearningOS/uCore-Tutorial-Code-2023S'
25-
name: Deploy to pages
26-
needs: base-test
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v3
30-
continue-on-error: true
31-
with:
32-
ref: 'gh-pages'
33-
- name: Save Log File
34-
uses: yfblock/multi-rank-log@main
35-
with:
36-
points: ${{ needs.base-test.outputs.points }}
37-
- name: GitHub Pages
38-
uses: crazy-max/ghaction-github-pages@v3
39-
with:
40-
target_branch: gh-pages
41-
build_dir: ./public
42-
keep_history: true
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
# run: cd ucore-tutorial-ci && make test passwd=${{ secrets.BASE_TEST_TOKEN }} CHAPTER=`echo ${GITHUB_REF##*/} | grep -oP 'ch\K[0-9]'` | tee ../output.txt
20+
run: cd ucore-tutorial-ci && make test passwd=${{ secrets.BASE_TEST_TOKEN }} CHAPTER=`echo ${GITHUB_REF##*/} | grep -oP 'ch\K[0-9]'`
21+
# - name: end
22+
# run: cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" >> $GITHUB_OUTPUT
23+
# deploy:
24+
# if: github.repository != 'LearningOS/uCore-Tutorial-Code-2023A'
25+
# name: Deploy to pages
26+
# needs: base-test
27+
# runs-on: ubuntu-latest
28+
# steps:
29+
# - uses: actions/checkout@v3
30+
# continue-on-error: true
31+
# with:
32+
# ref: 'gh-pages'
33+
# - name: Save Log File
34+
# uses: yfblock/multi-rank-log@main
35+
# with:
36+
# points: ${{ needs.base-test.outputs.points }}
37+
# - name: GitHub Pages
38+
# uses: crazy-max/ghaction-github-pages@v3
39+
# with:
40+
# target_branch: gh-pages
41+
# build_dir: ./public
42+
# keep_history: true
43+
# env:
44+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gitlab-mirror.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v4
1313
- name: Mirror + trigger CI
14-
uses: Gallium70/gitlab-mirror-and-ci-action@master
14+
uses: tkf2019/gitlab-mirror-and-ci-action@master
1515
with:
16-
args: "https://git.tsinghua.edu.cn/os-lab/2023s/public/ucore-tutorial-code-2023s"
16+
args: "https://git.tsinghua.edu.cn/os-lab/2023a/public/ucore-tutorial-code-2023a"
1717
env:
1818
GITLAB_HOSTNAME: "git.tsinghua.edu.cn"
19-
GITLAB_PROJECT_ID: "20789"
20-
GITLAB_PROJECT_NAME: "ucore-tutorial-code-2023s"
19+
GITLAB_PROJECT_ID: "26336"
20+
GITLAB_PROJECT_NAME: "ucore-tutorial-code-2023a"
2121
GITLAB_PROJECT_TOKEN: ${{secrets.GITLAB_PROJECT_TOKEN}}
2222
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ stages:
77
test-code-job:
88
stage: test
99
script:
10-
- git clone https://token:${UCORE_CHECKER_REPO_READ_TOKEN_2023S}@git.tsinghua.edu.cn/os-lab/2023s/ta/ucore-tutorial-checker-2023s.git ucore-tutorial-ci
11-
- git clone https://token:${UCORE_TEST_REPO_READ_TOKEN_2023S}@git.tsinghua.edu.cn/os-lab/2023s/public/ucore-tutorial-test-2023s.git ucore-tutorial-ci/workplace/user
10+
- git clone https://token:${UCORE_CHECKER_REPO_READ_TOKEN_2023A}@git.tsinghua.edu.cn/os-lab/2023a/ta/ucore-tutorial-checker-2023a.git ucore-tutorial-ci
11+
- git clone https://token:${UCORE_TEST_REPO_READ_TOKEN_2023A}@git.tsinghua.edu.cn/os-lab/2023a/public/ucore-tutorial-test-2023a.git ucore-tutorial-ci/workplace/user
1212
- cd ucore-tutorial-ci && make test CHAPTER=`echo $CI_COMMIT_REF_NAME | grep -oP 'ch\K[0-9]'`

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Course project for THU-OS.
1616

1717
```bash
1818
# 清华 git 使用 https
19-
git clone https://git.tsinghua.edu.cn/os-lab/public/ucore-tutorial-test-2022a.git user
19+
git clone https://git.tsinghua.edu.cn/os-lab/2023a/public/ucore-tutorial-test-2023a.git user
2020
# 清华 git 使用 ssh
21-
git clone [email protected]:os-lab/public/ucore-tutorial-test-2022a.git user
21+
git clone [email protected]:os-lab/2023a/public/ucore-tutorial-test-2023a.git user
2222
# GitHub 使用 https
23-
git clone https://github.com/LearningOS/uCore-Tutorial-Test-2022A.git user
23+
git clone https://github.com/LearningOS/uCore-Tutorial-Test-2023A.git user
2424
# GitHub 使用 ssh
25-
git clone [email protected]:LearningOS/uCore-Tutorial-Test-2022A.git user
25+
git clone [email protected]:LearningOS/uCore-Tutorial-Test-2023A.git user
2626
```
2727

2828
注意:`user` 已添加至 `.gitignore`,你无需将其提交,ci 也不会使用它

0 commit comments

Comments
 (0)