From 8130fc4dd5b70c54b7328715ccc3842b2ee68241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xory=20=E2=80=8B?= Date: Thu, 18 Apr 2024 10:52:18 +0000 Subject: [PATCH] feat: add gitlab ci/cd file --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..bc9dee4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# Official language image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/rust/tags/ +image: "rust:latest" + +# Optional: Pick zero or more services to be used on all builds. +# Only needed when using a docker container to run your tests in. +# Check out: https://docs.gitlab.com/ee/ci/services/index.html +# services: +# - mysql:latest +# - redis:latest +# - postgres:latest + +# Optional: Install a C compiler, cmake and git into the container. +before_script: + - sudo apt-get update -yqq + - sudo apt-get upgrade -yqq + - sudo apt-get install -yqq --no-install-recommends build-essential + - sudo apt-get install -yqq --no-install-recommends gcc + - curl https://sh.rustup.rs -sSf | sh -s -- -y + +build:cargo: + script: + - rustc --version && cargo --version + - cargo build