Skip to content

Commit

Permalink
Merge branch 'fix/push-releases-to-r2' of github.com:axelarnetwork/ax…
Browse files Browse the repository at this point in the history
…elar-amplifier into fix/push-releases-to-r2
  • Loading branch information
maancham committed Jul 25, 2024
2 parents e0e88af + 0ea93e2 commit 9cd20cb
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion .github/workflows/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -79,15 +89,51 @@ 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

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/[email protected]
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
Expand Down

0 comments on commit 9cd20cb

Please sign in to comment.