File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,9 @@ bench ~ aoc-2024:
5858 needs :
5959 - test ~ aoc-2024
6060 script :
61- - zig build benchmark -Doptimize=ReleaseFast -j1
61+ - zig build benchmark -Doptimize=ReleaseFast -j1 | tee bench.log
62+ - mkdir -p benchmarks_${AOC_YEAR}
63+ - cat bench.log | aha > benchmarks_${AOC_YEAR}/index.html
64+ artifacts :
65+ paths :
66+ - benchmarks_${AOC_YEAR}
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
2+ FROM alpine:3.21.0 AS builder
3+ RUN apk add --no-cache alpine-sdk
4+
5+ # Build aha (Ansi HTML Adapter) 0.5.1 from source
6+ RUN \
7+ wget https://github.com/theZiz/aha/archive/refs/tags/0.5.1.tar.gz && \
8+ aha_sha512="0eb88e681208c0956e344d6574f9d7ba155d38bfb386d0a9f17022c5e925fb16d0efb6aa04804191b4cac1697a87a0f16ba51bcd97b6135cc7606046eaf89288" && \
9+ echo "$aha_sha512 0.5.1.tar.gz" | sha512sum -c - && \
10+ tar -xf 0.5.1.tar.gz && \
11+ cd aha-0.5.1 && \
12+ make
13+
214FROM alpine:3.21.0
315RUN apk add --no-cache bash zig
16+
17+ COPY --from=builder /aha-0.5.1/aha /usr/local/bin
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ Challenges:
77- [ 2021: Learning ** Rust** ] ( 2021 ) [ ⭢ * Benchmarks* ⭠] ( https://acsimon33.gitlab.io/advent_of_code/2021/report/index.html )
88- [ 2022: Learning ** Typescript** ] ( 2022 )
99- [ 2023: Learning ** Kotlin** ] ( 2023 )
10- - [ 2024: Learning ** Zig** ] ( 2024 )
10+ - [ 2024: Learning ** Zig** ] ( 2024 ) [ ⭢ * Benchmarks * ⭠ ] ( https://acsimon33.gitlab.io/advent_of_code/2024/report/index.html )
1111- 2025: ???
You can’t perform that action at this time.
0 commit comments