fix:ch6 running ch5_spawn0, by moving buffer to heap #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jobs | |
on: [push] | |
env: | |
CARGO_TERM_COLOR: always | |
rust_toolchain: nightly | |
jobs: | |
basic-test: | |
runs-on: ubuntu-latest | |
outputs: | |
points: ${{ steps.end.outputs.points}} | |
container: | |
image: duskmoon/dev-env:rcore-ci | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
qemu-system-riscv64 --version | |
rustup target add riscv64gc-unknown-none-elf | |
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} | |
git clone https://github.com/LearningOS/rCore-Tutorial-Checker-2025S.git ci-user | |
git clone https://github.com/LearningOS/rCore-Tutorial-Test-2025S.git ci-user/user | |
ID=`git rev-parse --abbrev-ref HEAD | grep -oP 'ch\K[0-9]'` | |
# cd ci-user && make test CHAPTER=$ID passwd=${{ secrets.BASE_TEST_TOKEN }} | |
cd ci-user && make test CHAPTER=$ID passwd=${{ secrets.BASE_TEST_TOKEN }} OFFLINE=1 > ../output.txt | |
cat ../output.txt | |
- name: end | |
id: end | |
run: | | |
cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" | |
cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" >> $GITHUB_OUTPUT | |
gitlab-mirror: | |
if: github.repository == 'LearningOS/rCore-Tutorial-Code-2025S' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Mirror + trigger CI | |
uses: tkf2019/gitlab-mirror-and-ci-action@master | |
with: | |
args: "https://git.tsinghua.edu.cn/os-lab/2025S/public/rcore-tutorial-code-2025S" | |
env: | |
GITLAB_HOSTNAME: "git.tsinghua.edu.cn" | |
GITLAB_PROJECT_ID: "37679" | |
GITLAB_PROJECT_NAME: "rcore-tutorial-code-2025S" | |
GITLAB_PROJECT_TOKEN: ${{secrets.GITLAB_PROJECT_TOKEN}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
deploy: | |
if: github.repository != 'LearningOS/rCore-Tutorial-Code-2025S' | |
name: Deploy to pages | |
needs: basic-test | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
continue-on-error: true | |
with: | |
ref: 'gh-pages' | |
- name: Save Log File | |
uses: yfblock/multi-rank-log@main | |
with: | |
public-dir: classroom | |
points: ${{ needs.basic-test.outputs.points }} | |
- name: GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: gh-pages | |
build_dir: ./classroom | |
keep_history: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |