mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update ci
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -4,7 +4,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
|
||||||
- staging
|
- staging
|
||||||
- trying
|
- trying
|
||||||
|
|
||||||
@@ -18,19 +17,23 @@ jobs:
|
|||||||
runs-on: [self-hosted, ubuntu-20.04]
|
runs-on: [self-hosted, ubuntu-20.04]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install latest
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
components: rust-src, rustfmt, clippy
|
components: rust-src, rustfmt, clippy
|
||||||
|
- name: Install RISC-V
|
||||||
|
run: (echo 'Acquire::http { Proxy "http://10.22.0.2:3142"; }' | sudo tee -a /etc/apt/apt.conf.d/01proxy) && sudo apt-get update && sudo apt-get install -yy gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
|
||||||
|
- name: Check
|
||||||
|
run: cargo check --all --verbose
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all
|
run: cargo clippy --all -- -D warnings
|
||||||
- name: Check
|
|
||||||
run: cargo check --all
|
|
||||||
- name: Test (Debug)
|
- name: Test (Debug)
|
||||||
run: RUST_MIN_STACK=8388608 cargo test -- --skip test_examples_asmgen
|
run: RUST_MIN_STACK=8388608 cargo test
|
||||||
- name: Test (Release)
|
- name: Test (Release)
|
||||||
run: RUST_MIN_STACK=8388608 cargo test --release -- --skip test_examples_asmgen
|
run: RUST_MIN_STACK=8388608 cargo test --release
|
||||||
|
- name: Bench
|
||||||
|
run: cd bench; make run
|
||||||
|
|||||||
Reference in New Issue
Block a user