Skip to content
Open
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
13 changes: 12 additions & 1 deletion hermes/apps/athena/modules/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,15 @@ save-local-hermes:

# Save the binary to local filesystem for development use
# This makes it available at ./hermes in the calling directory
SAVE ARTIFACT hermes AS LOCAL ./hermes
SAVE ARTIFACT hermes AS LOCAL ./hermes

# Build wasm32-wasip2 for each modules
modules-build-wasm32-wasip2:
BUILD ./rbac-registration+build-rbac-registration
BUILD ./rbac-registration-indexer+build-rbac-registration-indexer
BUILD ./http-proxy+build-http-proxy

# Run build modules wasm32-wasip2 for the specify architect
# Comment this out if it take long time for CI to build.
build-all-host-modules-build-wasm32-wasip2:
BUILD --platform=linux/amd64 --platform=linux/arm64 +modules-build-wasm32-wasip2
5 changes: 4 additions & 1 deletion wasm/wasi/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IMPORT github.com/input-output-hk/catalyst-ci/earthly/wasm/c:v3.5.14 AS wasm-c-c
# Use when debugging cat-ci locally.
# IMPORT ../../catalyst-ci/earthly/rust AS rust-ci

#cspell: words rustfmt wasi autodrop teavm
#cspell: words rustfmt wasi autodrop teavm CFLAGS sysroot

# Make am Artifact which consists of the WIT SRC.
builder:
Expand Down Expand Up @@ -94,6 +94,9 @@ BUILD_RUST_COMPONENT:
COPY --keep-ts --dir src .
COPY Cargo.toml .

# Fix missing header error when compiling zstd while building rbac-registration
ENV CFLAGS_wasm32_wasip2="--sysroot=/usr/aarch64-linux-gnu"

DO rust-ci+CARGO \
--args "build --target wasm32-wasip2 --release" \
--output="wasm32-wasip2/release/$out"
Expand Down
Loading