mirror of
https://github.com/LearningOS/lab0-0-setup-env-run-os1-d0zingcat.git
synced 2026-05-27 15:09:52 +00:00
Initial commit
This commit is contained in:
14
scripts/autograding-test1.json
Normal file
14
scripts/autograding-test1.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os1",
|
||||
"setup": "",
|
||||
"run": "make test1",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test2.json
Normal file
14
scripts/autograding-test2.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os2",
|
||||
"setup": "",
|
||||
"run": "make test2",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test3.json
Normal file
14
scripts/autograding-test3.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os3",
|
||||
"setup": "",
|
||||
"run": "make test3",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test4.json
Normal file
14
scripts/autograding-test4.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os4",
|
||||
"setup": "",
|
||||
"run": "make test4",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test5.json
Normal file
14
scripts/autograding-test5.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os5",
|
||||
"setup": "",
|
||||
"run": "make test5",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test6.json
Normal file
14
scripts/autograding-test6.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os6",
|
||||
"setup": "",
|
||||
"run": "make test6",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test7.json
Normal file
14
scripts/autograding-test7.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os7",
|
||||
"setup": "",
|
||||
"run": "make test7",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test8.json
Normal file
14
scripts/autograding-test8.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "rust_os8",
|
||||
"setup": "",
|
||||
"run": "make test8",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
47
scripts/classroom.yml
Normal file
47
scripts/classroom.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: GitHub Classroom Workflow
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
checks: write
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Autograding
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly-2022-04-11
|
||||
components: rust-src, llvm-tools-preview
|
||||
target: riscv64gc-unknown-none-elf
|
||||
- uses: actions-rs/install@v0.1
|
||||
with:
|
||||
crate: cargo-binutils
|
||||
version: latest
|
||||
use-tool-cache: true
|
||||
- name: Cache QEMU
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: qemu-7.0.0
|
||||
key: qemu-7.0.0-x86_64-riscv64
|
||||
- name: Install QEMU
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install ninja-build -y
|
||||
if [ ! -d qemu-7.0.0 ]; then
|
||||
wget https://download.qemu.org/qemu-7.0.0.tar.xz
|
||||
tar -xf qemu-7.0.0.tar.xz
|
||||
cd qemu-7.0.0
|
||||
./configure --target-list=riscv64-softmmu
|
||||
make -j
|
||||
else
|
||||
cd qemu-7.0.0
|
||||
fi
|
||||
sudo make install
|
||||
qemu-system-riscv64 --version
|
||||
- uses: education/autograding@v1
|
||||
Reference in New Issue
Block a user