earthly fixes

This commit is contained in:
Anton-4 2021-02-03 19:54:25 +01:00
parent 5046f87db0
commit 78b47ef48d
2 changed files with 8 additions and 3 deletions

View File

@ -19,4 +19,4 @@ jobs:
run: earthly --version
- name: build container roc-deps-tests:latest
run: earthly +all
run: earthly +test-rust

View File

@ -4,6 +4,7 @@ WORKDIR /earthbuild
# TODO cache cargo packages
# TODO lld linker
# TODO caching steps
# TODO zig tests
prep-debian:
RUN apt -y update
@ -42,8 +43,12 @@ install-zig-llvm-valgrind-clippy-rustfmt:
# rustfmt
RUN rustup component add rustfmt
test-rust:
build-rust-tests:
FROM +install-zig-llvm-valgrind-clippy-rustfmt
COPY --dir cli compiler docs editor roc_std vendor Cargo.toml Cargo.lock ./
COPY --dir cli compiler docs editor roc_std vendor examples Cargo.toml Cargo.lock ./
RUN cargo test --release --no-run
test-rust:
FROM +build-rust-tests
RUN cargo test --release