This commit is contained in:
Jeehoon Kang
2024-05-08 03:31:34 +00:00
parent c73c81c10e
commit 099672d0b8
17 changed files with 463 additions and 226 deletions

View File

@@ -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