Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
hit-xby
OSKernel2024-yeah
Commits
b193c1df
Commit
b193c1df
authored
7 months ago
by
只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ
Browse files
Options
Download
Patches
Plain Diff
feat: add preliminary grading workflow for CI
parent
67c52afa
setup-preliminary-test-environment-vendored
feat/setup-preliminary-test-environment
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/preliminary.yml
+44
-0
.github/workflows/preliminary.yml
with
44 additions
and
0 deletions
+44
-0
.github/workflows/preliminary.yml
0 → 100644
+
44
−
0
View file @
b193c1df
name
:
Preliminary test
on
:
push
:
branches
:
-
"
**"
workflow_dispatch
:
env
:
CARGO_TERM_COLOR
:
'
always'
IS_CI_ENVIRONMENT
:
true
jobs
:
run
:
name
:
Grading
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Install Rust toolchain
env
:
TOOLCHAIN_VERSION
:
nightly-2024-02-03
run
:
|
rustup toolchain install $TOOLCHAIN_VERSION --profile minimal
rustup default $TOOLCHAIN_VERSION
rustup override set $TOOLCHAIN_VERSION
rustup target add riscv64gc-unknown-none-elf
rustup component add llvm-tools
-
uses
:
taiki-e/cache-cargo-install-action@v2
with
:
tool
:
cargo-binutils
-
name
:
Install Qemu
run
:
|
sudo apt update
sudo apt install -y qemu-system-misc
qemu-system-riscv64 --version
-
name
:
Run
timeout-minutes
:
5
run
:
make test
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets