Skip to content

Commit 1017719

Browse files
committed
Add recipe to auto-update paper with new data
1 parent 6837c2f commit 1017719

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ log
2525
__pycache__/
2626
.DS_Store
2727
._.DS_Store
28+
rustgc_paper/

Dockerfile.paper

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM jupyter/scipy-notebook:python-3.11 AS builder
2+
3+
USER root
4+
WORKDIR /app
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
perl wget git fontconfig inkscape texlive-full make dbus-x11 \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
COPY pyproject.toml ./
11+
RUN --mount=type=cache,target=/root/.cache/pip \
12+
pip install .[dev]
13+
14+
RUN git clone https://github.com/softdevteam/rustgc_paper rustgc_paper
15+
WORKDIR /app/rustgc_paper
16+
RUN make
17+
18+
FROM scratch AS export
19+
COPY --from=builder /app/rustgc_paper/ /

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ BIN_ARCHIVE ?= artefacts-bin.tar.xz
1717
EXP_ARG := $(if $(strip $(EXPERIMENTS)),--experiments "$(EXPERIMENTS)")
1818
SUITE_ARG := $(if $(strip $(SUITES)),--suites $(SUITES))
1919
MEASURE_ARG := $(if $(strip $(MEASUREMENTS)),--measurements $(MEASUREMENTS))
20-
2120
QUICK_PEXECS = 5
2221
FULL_PEXECS = 30
2322

@@ -78,3 +77,6 @@ bare-metal: venv
7877

7978
process: venv
8079
@$(INVOKE) process-benchmarks
80+
81+
build-paper:
82+
docker build --progress=plain -f Dockerfile.paper --target export --output type=local,dest=./rustgc_paper -t rustgc-paper:latest .

0 commit comments

Comments
 (0)