blob: 75e13b56d36dbfb0c2cce32ef67dd6f12ddd238d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
stages:
- build
build_and_test:
image: rust:alpine3.16
variables:
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- target/
- .cargo/bin
- .cargo/registry/index
- .cargo/registry/cache
stage: build
before_script:
- apk add openssl openssl-dev musl-dev
script:
- cargo build
- cargo test
|