|
|
@@ -25,52 +25,52 @@ ARG SED_REMOVE_INVALID_REFERENCE="/^\s*wasm.__wbg_systeminstruction_free(ptr);$/
|
|
|
|
|
|
# Compile Wormhole
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=bridge/target \
|
|
|
+ --mount=type=cache,target=solana/bridge/target \
|
|
|
cd solana/bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
|
|
|
cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE bridge_bg.js
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=bridge/target \
|
|
|
+ --mount=type=cache,target=solana/bridge/target \
|
|
|
cd solana/bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
|
|
|
|
|
|
# Compile Token Bridge
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=modules/token_bridge/target \
|
|
|
+ --mount=type=cache,target=solana/modules/token_bridge/target \
|
|
|
cd solana/modules/token_bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
|
|
|
cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE token_bridge_bg.js
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=modules/token_bridge/target \
|
|
|
+ --mount=type=cache,target=solana/modules/token_bridge/target \
|
|
|
cd solana/modules/token_bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
|
|
|
|
|
|
# Compile Migration
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=migration/target \
|
|
|
+ --mount=type=cache,target=solana/migration/target \
|
|
|
cd solana/migration && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
|
|
|
cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE wormhole_migration_bg.js
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=migration/target \
|
|
|
+ --mount=type=cache,target=solana/migration/target \
|
|
|
cd solana/migration && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
|
|
|
|
|
|
# Compile NFT Bridge
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=modules/nft_bridge/target \
|
|
|
+ --mount=type=cache,target=solana/modules/nft_bridge/target \
|
|
|
cd solana/modules/nft_bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
|
|
|
cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE nft_bridge_bg.js
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=modules/nft_bridge/target \
|
|
|
+ --mount=type=cache,target=solana/modules/nft_bridge/target \
|
|
|
cd solana/modules/nft_bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
|
|
|
|
|
|
# Compile pyth2wormhole
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=pyth2wormhole/target \
|
|
|
+ --mount=type=cache,target=solana/pyth2wormhole/target \
|
|
|
cd solana/pyth2wormhole/program \
|
|
|
&& /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache \
|
|
|
- --mount=type=cache,target=pyth2wormhole/target \
|
|
|
+ --mount=type=cache,target=solana/pyth2wormhole/target \
|
|
|
cd solana/pyth2wormhole/program \
|
|
|
&& /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
|
|
|
|