Skip to content

Commit

Permalink
ci: install wasm32-unknown-unknown target
Browse files Browse the repository at this point in the history
  • Loading branch information
denbite committed Aug 21, 2024
1 parent 49809f0 commit 61e1de5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,20 @@ jobs:
ref: ${{ needs.variables.outputs.commit_sha }}

- uses: Swatinem/rust-cache@v1

- name: Install wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown

- name: Install cargo-near
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh

- name: Build contract
run: cargo near build --no-docker --no-abi

- name: Install near CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.3.1/near-cli-rs-v0.3.1-installer.sh | sh
- name: Deploy contract
run: |
near contract deploy $NEAR_CONTRACT_ACCOUNT_ID use-file ./target/near/mystery_box.wasm without-init-call network-config $NEAR_NETWORK sign-with-plaintext-private-key --signer-public-key "$NEAR_CONTRACT_ACCOUNT_PUBLIC_KEY" --signer-private-key "$NEAR_CONTRACT_ACCOUNT_PRIVATE_KEY" send

0 comments on commit 61e1de5

Please sign in to comment.