Skip to content

Commit 36ba3a3

Browse files
jyn514Joshua Nelson
authored andcommitted
Use the linux-micro image for tests
I tested that this can build `hexponent 0.3.0` successfully. This cuts the download size down from over 1 GB to about 150 MB.
1 parent 8c64713 commit 36ba3a3

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ AWS_ACCESS_KEY_ID=cratesfyi
55
AWS_SECRET_ACCESS_KEY=secret_key
66
S3_ENDPOINT=http://localhost:9000
77
DOCSRS_INCLUDE_DEFAULT_TARGETS=false
8+
DOCSRS_DOCKER_IMAGE=ghcr.io/rust-lang/crates-build-env/linux-micro

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ jobs:
3838
- name: fast tests
3939
run: cargo test --workspace --locked
4040

41-
- name: create small build-environment
42-
run: |
43-
docker build -t buildenv - < dockerfiles/Dockerfile-small-build-env
44-
4541
- name: slow tests
4642
env:
4743
DOCSRS_INCLUDE_DEFAULT_TARGETS: true
48-
DOCS_RS_LOCAL_DOCKER_IMAGE: buildenv
44+
DOCSRS_DOCKER_IMAGE: ghcr.io/rust-lang/crates-build-env/linux-micro
4945
run: cargo test --workspace --locked -- --ignored
5046

5147
- name: Clean up the database

dockerfiles/Dockerfile-small-build-env

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)