diff options
author | Aria <me@aria.rip> | 2023-01-02 21:58:56 +0000 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-01-02 21:58:56 +0000 |
commit | 5eb58ad076f2cd435b11b140820da224b60b73d5 (patch) | |
tree | 2a67939595fbf993ff04f69b9cd3f0aa20827d96 /2022/.gitlab-ci.yml |
initial commit
Diffstat (limited to '2022/.gitlab-ci.yml')
-rw-r--r-- | 2022/.gitlab-ci.yml | 26 |
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/ |