blob: 48a1625c35a04ef0f0c46cbbc3594394f7568e0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/
|