Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions rust/c509-certificate/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/.
Expand Down
4 changes: 2 additions & 2 deletions rust/cbork/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading