From c810a85da0fcba3871536b913c0a12c70f9435ee Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 8 Mar 2025 22:02:33 -0500 Subject: [PATCH] Added workflow file --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1d2d28b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +stages: + - build + - test + +build: + stage: build + image: rust:1.85 + script: + - cargo build --release + artifacts: + paths: + - target/release/clean_file + expire_in: 1 week + cache: + key: "cargo-cache" + paths: + - target/ + - ~/.cargo/ + +test: + stage: test + image: rust:1.85 + script: + - cargo test + cache: + key: "cargo-cache" + paths: + - target/ + - ~/.cargo/