-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (40 loc) · 1.15 KB
/
build-and-publish-cosmwasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Compile and publish Cosmwasm contracts to the GitHub Package Registry
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- contracts/cosmwasm-vm/**
- libraries/common/rust/**
- .github/workflows/deploy-cosmwasm-contracts.yml
jobs:
Build:
name: Build Cosmasm Contracts
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.69.0
target: wasm32-unknown-unknown
override: true
profile: minimal
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Compile WASM
run: |
rustup component add rustfmt --toolchain 1.69.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.69.0-x86_64-unknown-linux-gnu
bash ./scripts/optimize-cosmwasm.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: cosmwasm-contracts
path: artifacts