This repository was archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathEarthfile
More file actions
54 lines (43 loc) · 1.3 KB
/
Earthfile
File metadata and controls
54 lines (43 loc) · 1.3 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
VERSION 0.7
FROM rust:1.72.1
WORKDIR /wolfssl-sys
build-deps:
RUN apt-get update -qq
RUN apt-get install --no-install-recommends -qq autoconf autotools-dev libtool-bin clang cmake
RUN apt-get -y install --no-install-recommends bsdmainutils
RUN rustup component add rustfmt
copy-src:
FROM +build-deps
COPY Cargo.toml Cargo.lock wrapper.h build.rs ./
COPY --dir src vendor examples ./
build-dev:
FROM +copy-src
RUN cargo build
SAVE ARTIFACT target/debug /debug AS LOCAL artifacts/debug
build-release:
FROM +copy-src
RUN cargo build --release
SAVE ARTIFACT target/release /release AS LOCAL artifacts/release
run-tests:
FROM +copy-src
RUN cargo test
build:
BUILD +run-tests
BUILD +build-release
build-crate:
FROM +copy-src
RUN cargo package
SAVE ARTIFACT target/package/*.crate /package/ AS LOCAL artifacts/crate/
lint:
FROM +copy-src
RUN rustup component add clippy
RUN apt-get install -qqy bsdextrautils
RUN cargo clippy --all-features --all-targets -- -D warnings
fmt:
FROM +copy-src
RUN rustup component add rustfmt
RUN cargo fmt --check
check-license:
RUN cargo install --locked cargo-deny
COPY --dir src tests Cargo.toml Cargo.lock deny.toml ./
RUN cargo deny --all-features check bans license sources