From 65b220007ef26e925322d43e8620c5ad55ab0b1a Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 28 Dec 2024 22:45:09 +0100 Subject: [PATCH] Eternal builds --- .aocbench.yaml | 4 ++-- Dockerfile | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.aocbench.yaml b/.aocbench.yaml index 4f2afac..3ee27d9 100644 --- a/.aocbench.yaml +++ b/.aocbench.yaml @@ -4,8 +4,8 @@ language: "scala" dockerfile: "Dockerfile" code: "/code" workdir: "/code" -runonce: "./mill aoc.assembly" -cmd: "java -jar ./out/aoc/assembly.dest/out.jar %day% %input%" +runonce: "./mill aoc.nativeImage" +cmd: "./out/aoc/nativeImage.dest/aoc %day% %input%" environment: - AOC_BENCH=1 daypath: "aoc/src/dev/ctsk/aoc/days/Day%dayzero%.scala" diff --git a/Dockerfile b/Dockerfile index 9ab3173..33c4e8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ -FROM eclipse-temurin:23-jdk-alpine +FROM eclipse-temurin:23-jdk -RUN apk add curl +RUN apt-get update && apt-get install -y curl gzip build-essential libz-dev +RUN curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz" | gzip -d > cs +RUN chmod +x cs +RUN cp cs /usr/local/bin +RUN ./cs setup --yes COPY . /build WORKDIR /build -RUN ./mill aoc.assembly \ No newline at end of file +RUN ./mill aoc.assembly + +RUN ./mill aoc.nativeImage \ No newline at end of file