Skip to content

Commit dc55ee4

Browse files
scPointerAzure-stars
authored andcommitted
update to 2025s info
1 parent d4176c3 commit dc55ee4

File tree

3 files changed

+60
-46
lines changed

3 files changed

+60
-46
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
jobs:
1010
build-doc:
11-
if: github.repository == 'LearningOS/rCore-Tutorial-Code-2025S'
11+
if: github.repository == 'LearningOS/rCore-Camp-Code-2025S'
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
@@ -48,23 +48,8 @@ jobs:
4848
run: |
4949
cat output.txt | grep -a "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}"
5050
cat output.txt | grep -a "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" >> $GITHUB_OUTPUT
51-
gitlab-mirror:
52-
if: github.repository == 'LearningOS/rCore-Tutorial-Code-2025S'
53-
runs-on: ubuntu-latest
54-
steps:
55-
- uses: actions/checkout@v1
56-
- name: Mirror + trigger CI
57-
uses: tkf2019/gitlab-mirror-and-ci-action@master
58-
with:
59-
args: "https://git.tsinghua.edu.cn/os-lab/2025S/public/rcore-tutorial-code-2025S"
60-
env:
61-
GITLAB_HOSTNAME: "git.tsinghua.edu.cn"
62-
GITLAB_PROJECT_ID: "37679"
63-
GITLAB_PROJECT_NAME: "rcore-tutorial-code-2025S"
64-
GITLAB_PROJECT_TOKEN: ${{secrets.GITLAB_PROJECT_TOKEN}}
65-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6651
deploy:
67-
if: github.repository != 'LearningOS/rCore-Tutorial-Code-2025S'
52+
if: github.repository != 'LearningOS/rCore-Camp-Code-2025S'
6853
name: Deploy to pages
6954
needs: basic-test
7055
runs-on: ubuntu-latest
@@ -86,4 +71,31 @@ jobs:
8671
build_dir: ./classroom
8772
keep_history: true
8873
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
- name: check score
76+
env:
77+
course_id: ${{ secrets.RCORE_2025_SPRING_COURSE_ID }}
78+
post_api: ${{ secrets.RCORE_2025_SPRING_POST_API }}
79+
token: ${{ secrets.RCORE_2025_SPRING_TOKEN }}
80+
run: |
81+
score=$(( $(grep -o 'ch' classroom/latest.json | wc -l) * 100))
82+
cat classroom/latest.json
83+
echo $score
84+
85+
github_user="${{ github.actor }}"
86+
87+
# 生成 JSON 结果
88+
score_json=$(jq -n \
89+
--arg channel "github" \
90+
--argjson courseId "$course_id" \
91+
--arg name "$github_user" \
92+
--argjson score "$score" \
93+
--argjson totalScore 500 \
94+
'{channel: $channel, courseId: $courseId, name: $name, score: $score, totalScore: $totalScore}')
95+
96+
curl -X POST $post_api \
97+
-H "accept: application/json;charset=utf-8" \
98+
-H "Content-Type: application/json" \
99+
-H "token: $token" \
100+
-d "$score_json" \
101+
-v

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ pushall.sh
1717
*.bak
1818
ci-user/
1919
user/
20-
os/vendor/
20+
os/vendor/

README.md

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
1-
# rCore-Tutorial-Code-2025S
1+
# rCore-Camp-Code-2025S
22

33
### Code
4-
- [Soure Code of labs for 2025S](https://github.com/LearningOS/rCore-Tutorial-Code-2025S)
4+
- [Soure Code of labs for 2025S](https://github.com/LearningOS/rCore-Camp-Code-2025S)
55
### Documents
66

7-
- Concise Manual: [rCore-Tutorial-Guide-2025S](https://LearningOS.github.io/rCore-Tutorial-Guide-2025S/)
7+
- Concise Manual: [rCore-Camp-Guide-2025S](https://LearningOS.github.io/rCore-Camp-Guide-2025S/)
88

99
- Detail Book [rCore-Tutorial-Book-v3](https://rcore-os.github.io/rCore-Tutorial-Book-v3/)
1010

1111

12-
### OS API docs of rCore Tutorial Code 2025S
13-
- [OS API docs of ch1](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch1/os/index.html)
14-
AND [OS API docs of ch2](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch2/os/index.html)
15-
- [OS API docs of ch3](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch3/os/index.html)
16-
AND [OS API docs of ch4](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch4/os/index.html)
17-
- [OS API docs of ch5](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch5/os/index.html)
18-
AND [OS API docs of ch6](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch6/os/index.html)
19-
- [OS API docs of ch7](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch7/os/index.html)
20-
AND [OS API docs of ch8](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch8/os/index.html)
21-
- [OS API docs of ch9](https://learningos.github.io/rCore-Tutorial-Code-2025S/ch9/os/index.html)
12+
### OS API docs
13+
- [ch1](https://learningos.github.io/rCore-Camp-Code-2025S/ch1/os/index.html) [ch2](https://learningos.github.io/rCore-Camp-Code-2025S/ch2/os/index.html) [ch3](https://learningos.github.io/rCore-Camp-Code-2025S/ch3/os/index.html) [ch4](https://learningos.github.io/rCore-Camp-Code-2025S/ch4/os/index.html)
14+
- [ch5](https://learningos.github.io/rCore-Camp-Code-2025S/ch5/os/index.html) [ch6](https://learningos.github.io/rCore-Camp-Code-2025S/ch6/os/index.html) [ch7](https://learningos.github.io/rCore-Camp-Code-2025S/ch7/os/index.html) [ch8](https://learningos.github.io/rCore-Camp-Code-2025S/ch8/os/index.html)
15+
2216

2317
### Related Resources
2418
- [Learning Resource](https://github.com/LearningOS/rust-based-os-comp2022/blob/main/relatedinfo.md)
2519

2620

2721
### Build & Run
2822

23+
Replace `<YourName>` with your github ID, and replace `<Number>` with the chapter ID.
24+
25+
Notice: `<Number>` is chosen from `[1,2,3,4,5,6,7,8]`
26+
2927
```bash
30-
# setup build&run environment first
31-
$ git clone https://github.com/LearningOS/rCore-Tutorial-Code-2025S.git
32-
$ cd rCore-Tutorial-Code-2025S
33-
$ git clone https://github.com/LearningOS/rCore-Tutorial-Test-2025S.git user
28+
#
29+
$ git clone [email protected]:LearningOS/2025s-rcore-<YourName>
30+
$ cd 2025s-rcore-<YourName>
31+
$ git clone [email protected]:LearningOS/rCore-Tutorial-Test-2025S user
32+
$ git checkout ch<Number>
3433
$ cd os
35-
$ git checkout ch$ID
36-
# run OS in ch$ID
3734
$ make run
3835
```
39-
Notice: $ID is from [1-9]
4036

4137
### Grading
4238

39+
Replace `<YourName>` with your github ID, and replace `<Number>` with the chapter ID.
40+
41+
Notice: `<Number>` is chosen from `[3,4,5,6,8]`
42+
4343
```bash
44-
# setup build&run environment first
45-
$ git clone https://github.com/LearningOS/rCore-Tutorial-Code-2025S.git
46-
$ cd rCore-Tutorial-Code-2025S
47-
$ git clone https://github.com/LearningOS/rCore-Tutorial-Checker-2025S.git ci-user
48-
$ git clone https://github.com/LearningOS/rCore-Tutorial-Test-2025S.git ci-user/user
49-
$ cd ci-user && make test CHAPTER=$ID
44+
# Replace <YourName> with your github ID
45+
$ git clone [email protected]:LearningOS/2025s-rcore-<YourName>
46+
$ cd 2025s-rcore-<YourName>
47+
$ rm -rf ci-user
48+
$ git clone [email protected]:LearningOS/rCore-Tutorial-Checker-2025S ci-user
49+
$ git clone [email protected]:LearningOS/rCore-Tutorial-Test-2025S ci-user/user
50+
$ git checkout ch<Number>
51+
$ cd ci-user
52+
$ make test CHAPTER=<Number>
5053
```
51-
Notice: $ID is from [3,4,5,6,8]

0 commit comments

Comments
 (0)