diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..75e13b5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,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 |