Commit b193c1df authored by 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ's avatar 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ :man_dancing_tone1:
Browse files

feat: add preliminary grading workflow for CI

Showing with 44 additions and 0 deletions
+44 -0
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment