From 7e27cb71f31675b3accb3cef8d987544af4dcc50 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Wed, 24 Jul 2024 14:19:03 -0400 Subject: [PATCH 1/2] ci: use cosmwasm-check v1.3.x for consistency with wasmvm version (#534) Co-authored-by: Christian Gorenflo --- .github/workflows/basic.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/basic.yaml b/.github/workflows/basic.yaml index e6b6d3d09..3ee6e136b 100644 --- a/.github/workflows/basic.yaml +++ b/.github/workflows/basic.yaml @@ -59,8 +59,18 @@ jobs: profile: minimal toolchain: 1.78.0 target: wasm32-unknown-unknown + default: true override: true + - name: Install cosmwasm-check compatible toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.75.0 + target: wasm32-unknown-unknown + default: false + override: false + - name: Cache build artifacts id: cache uses: useblacksmith/rust-cache@v3.0.1 @@ -79,11 +89,14 @@ jobs: (cd $C && cargo build --release --lib --target wasm32-unknown-unknown --locked) done + # cosmwasm-check v1.3.x is used to check for compatibility with wasmvm v1.3.x used by Axelar + # Older rust toolchain is required to install cosmwasm-check v1.3.x - name: Install cosmwasm-check uses: actions-rs/cargo@v1 with: command: install - args: --version 1.5.5 --locked cosmwasm-check + toolchain: 1.75.0 + args: --version 1.3.4 --locked cosmwasm-check - name: Check wasm contracts run: cosmwasm-check ./target/wasm32-unknown-unknown/release/*.wasm From 3359fc3afbb95cbe9ad31e4e282a3708d3b4386d Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Wed, 24 Jul 2024 14:40:02 -0400 Subject: [PATCH 2/2] ci(ampd): build ampd in gh actions (#533) --- .github/workflows/basic.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/basic.yaml b/.github/workflows/basic.yaml index 3ee6e136b..e15914b38 100644 --- a/.github/workflows/basic.yaml +++ b/.github/workflows/basic.yaml @@ -101,6 +101,39 @@ jobs: - name: Check wasm contracts run: cosmwasm-check ./target/wasm32-unknown-unknown/release/*.wasm + ampd-compilation: + name: Ampd Release Compilation + runs-on: blacksmith-16vcpu-ubuntu-2204 + steps: + - uses: actions/checkout@v4 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.78.0 + target: wasm32-unknown-unknown + override: true + + - name: Install protoc + uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Cache build artifacts + id: cache + uses: useblacksmith/rust-cache@v3.0.1 + with: + shared-key: "cache-ampd-compilation" + + - name: Log crates.toml + if: steps.cache.outputs.cache-hit == 'true' + run: cat /home/runner/.cargo/.crates.toml + + - name: Build ampd + working-directory: ./ampd + run: cargo build --release --locked + lints: name: Lints runs-on: blacksmith-16vcpu-ubuntu-2204