Run continuous integration on a custom image

Write a Dockerfile that describes a Debian image with our build
environment set up in it. Write a script that builds and tags the custom
image. Set the continuous integration workflow to run on the custom
image, pulled from Docker's local image store.

Running the examples on the custom image takes the same steps as running
them on a development machine, so we no longer gain anything from
factoring out the `cargo run --example` steps. That means we can get rid
of the `run-examples` action. Since the build environment is now set up
ahead of time, we can get rid of the `setup-rust` action too.
This commit is contained in:
Aaron Fenyes 2025-03-07 01:25:30 -08:00
parent bbfdf2b87f
commit 4442dd860b
5 changed files with 40 additions and 30 deletions

View file

@ -0,0 +1,4 @@
FROM rust:1.85-slim-bookworm
RUN rustup target add wasm32-unknown-unknown
RUN cargo install trunk
WORKDIR /home

5
tools/ci-image/build Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# build and tag the Docker image we use for continuous integration
docker build . --tag dyna3:ci