mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Bump
This commit is contained in:
@@ -10,16 +10,17 @@ cache:
|
||||
variables:
|
||||
RUST_BACKTRACE: "FULL"
|
||||
|
||||
image: "rust:latest"
|
||||
image: rust:latest
|
||||
|
||||
stages:
|
||||
- install
|
||||
- test
|
||||
- deploy
|
||||
|
||||
install:
|
||||
stage: install
|
||||
script:
|
||||
- rustup default stable
|
||||
- rustc --version # triggering installation
|
||||
|
||||
check:
|
||||
stage: test
|
||||
@@ -35,13 +36,26 @@ check:
|
||||
debug:
|
||||
stage: test
|
||||
before_script:
|
||||
- apt update && apt install -yy gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
|
||||
- (echo 'Acquire::http { Proxy "http://10.22.0.2:3142"; }' | tee -a /etc/apt/apt.conf.d/01proxy) && apt update && apt install -yy clang gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
|
||||
script:
|
||||
- RUST_MIN_STACK=8388608 cargo test
|
||||
- RUST_MIN_STACK=8388608 cargo test -- --nocapture
|
||||
|
||||
release:
|
||||
stage: test
|
||||
before_script:
|
||||
- apt update && apt install -yy gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
|
||||
- (echo 'Acquire::http { Proxy "http://10.22.0.2:3142"; }' | tee -a /etc/apt/apt.conf.d/01proxy) && apt update && apt install -yy clang gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
|
||||
script:
|
||||
- RUST_MIN_STACK=8388608 cargo test --release
|
||||
- RUST_MIN_STACK=8388608 cargo test --release -- --nocapture
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
before_script:
|
||||
# - apt update && apt install -yy
|
||||
script:
|
||||
- cargo doc
|
||||
- mkdir -p public && cp -r target/doc/* public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||
|
||||
Reference in New Issue
Block a user