-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEarthfile
39 lines (30 loc) · 982 Bytes
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
VERSION 0.6
FROM public.ecr.aws/docker/library/rust:alpine3.17
COPY . .
ci:
# TODO: figure out how to not repeat adding clippy
# Since these BUILD commands don't have any other dependent BUILDs, they can run in parallel!
RUN cargo check
BUILD +cargo-clippy
BUILD +cargo-fmt
BUILD +beta-update
cargo-clippy:
RUN rustup component add clippy
RUN cargo check
# allowing dirty since paths in the container like /usr /share show up as "dirty"
RUN cargo clippy --fix --allow-dirty
cargo-fmt:
RUN rustup component add rustfmt
RUN cargo fmt --check
scheduled-ci:
BUILD +nightly
BUILD +beta-update
nightly:
RUN rustup toolchain install nightly && rustup default nightly
RUN cargo test --locked --all-features --all-targets
beta-update:
RUN rustup toolchain install beta && rustup default beta
# TODO: generate lockfile if one does not exist
RUN cargo update
ENV RUSTFLAGS="-D deprecated"
RUN cargo test --locked --all-features --all-targets