From 737254670b07c43fd1ea7708705844ce1d3d4eb4 Mon Sep 17 00:00:00 2001 From: maxrobot Date: Tue, 24 Sep 2024 17:08:15 +0100 Subject: [PATCH] feat: fix ci --- .cargo/config | 6 ------ .github/workflows/rust.yaml | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config deleted file mode 100644 index 8d4bc73..0000000 --- a/.cargo/config +++ /dev/null @@ -1,6 +0,0 @@ -[alias] -wasm = "build --release --target wasm32-unknown-unknown" -wasm-debug = "build --target wasm32-unknown-unknown" -unit-test = "test --lib" -integration-test = "test --test integration" -schema = "run --example schema" diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 406f16c..a671215 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -32,6 +32,14 @@ jobs: profile: minimal toolchain: stable override: true + + - name: Compile WASM contracts + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude testenv + env: + RUSTFLAGS: "-C link-arg=-s" - name: run tests uses: actions-rs/cargo@v1 with: