-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate ampd build into separate job
- Loading branch information
1 parent
06d5cec
commit a6f4a27
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,11 +61,6 @@ jobs: | |
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] | ||
|
@@ -93,6 +88,35 @@ jobs: | |
- name: Check wasm contracts | ||
run: cosmwasm-check ./target/wasm32-unknown-unknown/release/*.wasm | ||
|
||
ampd-compilation: | ||
name: Ampd 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 | ||
|