From 30f91cc2af53facfc33681f1409bc850f9b8e63e Mon Sep 17 00:00:00 2001
From: Louis <contact@louiscap.co>
Date: Thu, 13 Oct 2022 16:42:21 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d81acd8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,30 @@
+image: "rust:latest"
+
+test:cargo:
+  script:
+    - rustc --version && cargo --version  # Print version info for debugging
+    # No tests yet //
+    # - cargo test --workspace --verbose
+
+build:application:
+  before_script:
+    - export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
+    - export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
+  cache:
+    key: build-cache-linux
+    paths:
+    - .cargo/registry/cache
+    - .cargo/registry/index
+    - .cargo/git/db
+    - .cargo/bin/
+    - target/
+  script:
+    - cargo build --release
+    - cp target/release/png_to_svg "${CI_PROJECT_DIR}/"
+    - strip png_to_svg
+  artifacts:
+    expire_in: 1 day
+    paths:
+      - png_to_svg
+  only:
+    - trunk
\ No newline at end of file
-- 
GitLab