diff --git a/rust/Earthfile b/rust/Earthfile index a97149d7a88..fd4f99319ba 100644 --- a/rust/Earthfile +++ b/rust/Earthfile @@ -48,8 +48,8 @@ check: DO rust-ci+EXECUTE --cmd="/scripts/std_checks.py" -# build : Build crates. -build: +# base-build : Build crates. +base-build: FROM +builder-src DO rust-ci+EXECUTE \ @@ -65,7 +65,11 @@ build: --docs="true" SAVE ARTIFACT target/doc doc - SAVE ARTIFACT target/release/cbork cbork + +build: + BUILD +base-build + BUILD ./cbork/+cbork-build + BUILD ./c509-certificate/+c509-wasm-build # build-src-check: Check for any caching issues with the source we are building against. check-builder-src-cache: diff --git a/rust/c509-certificate/Earthfile b/rust/c509-certificate/Earthfile index a2235832e69..800896d3c5a 100644 --- a/rust/c509-certificate/Earthfile +++ b/rust/c509-certificate/Earthfile @@ -6,15 +6,15 @@ IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.2.23 AS rust-ci IMPORT .. AS rust-local IMPORT ../.. AS repo -# build-wasm: Build wasm binaries for browser integration. +# c509-wasm-build: Build wasm binaries for browser integration. # TODO: # - Create a `test` target which Executes tests for browsers (chrome/firefox) and also nodejs # with the built wasm from this target. # - Create a publish target which can publish the library to NPM for both Web and NodeJS. # - Create a simple example web app and nodejs app which uses the library, and can be used to # test it after publishing. -build-wasm: - FROM rust-local+build +c509-wasm-build: + FROM rust-local+base-build COPY repo+repo-docs/repo/LICENSE-APACHE c509-certificate/. COPY repo+repo-docs/repo/LICENSE-MIT c509-certificate/. diff --git a/rust/cbork/Earthfile b/rust/cbork/Earthfile index e32f5fbb19d..f1db9f4af68 100644 --- a/rust/cbork/Earthfile +++ b/rust/cbork/Earthfile @@ -7,7 +7,7 @@ IMPORT .. AS rust-local # Run build using the most efficient host tooling # CI Automated Entry point. -build: - FROM rust-local+build +cbork-build: + FROM rust-local+base-build SAVE ARTIFACT target/release/cbork cbork