From 5eb58ad076f2cd435b11b140820da224b60b73d5 Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 2 Jan 2023 21:58:56 +0000 Subject: initial commit --- 2022/.gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 2022/.gitlab-ci.yml (limited to '2022/.gitlab-ci.yml') diff --git a/2022/.gitlab-ci.yml b/2022/.gitlab-ci.yml new file mode 100644 index 0000000..48a1625 --- /dev/null +++ b/2022/.gitlab-ci.yml @@ -0,0 +1,26 @@ +image: rust:latest + +variables: + CARGO_HOME: $CI_PROJECT_DIR/.cargo + TRUNK_VERSION: v0.16.0 + +stages: + - build + +pages: + stage: build + image: rust:latest + before_script: + - rustup target add wasm32-unknown-unknown + - wget -qO- https://github.com/thedodd/trunk/releases/download/${TRUNK_VERSION}/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- + script: + - mkdir -p public/ + - ./trunk build -d public/day9 --release --public-url /aoc-2022/day9 src/day09.html + - ./trunk build -d public/day14 --release --public-url /aoc-2022/day14 src/day14.html + artifacts: + paths: + - public/ + cache: + paths: + - target/ + - .cargo/ -- cgit v1.2.3