aboutsummaryrefslogtreecommitdiff
path: root/2022/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '2022/.gitlab-ci.yml')
-rw-r--r--2022/.gitlab-ci.yml26
1 files changed, 26 insertions, 0 deletions
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/