Skip to content

Commit

Permalink
ci(ampd): build ampd in gh actions (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth authored Jul 24, 2024
1 parent 7e27cb7 commit 3359fc3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[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 3359fc3

Please sign in to comment.