33992542b1
* updated contracts to cosmwasm2.2 and fixed build issues * removed old coconut contract code + additional dkg fixes * replace deprecated to_binary and from_binary functions * mixnet contract tests compiling some are failing due to incorrect addresses * made other contract tests compile * fixed remaining tests * allow usage of manually dispatching contract replies * nym-api test fixes * removed old toolchain from contracts CI * linter fixes * regenerated contract schema * fixed easy_addr * further license fixes * post rebase fixes + update to 2.2.2 * change ci runner * minor CI adjustments * change wallet CI to use node 20 * more CI changes... * run cosmwasm-check against release contracts * test ci changes * wip...
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: publish-nym-contracts
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [ created ]
|
|
|
|
jobs:
|
|
build:
|
|
if: ${{ (startsWith(github.ref, 'refs/tags/nym-contracts-') && github.event_name == 'release') || github.event_name == 'workflow_dispatch' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
target: wasm32-unknown-unknown
|
|
override: true
|
|
|
|
- name: Install wasm-opt
|
|
uses: ./.github/actions/install-wasm-opt
|
|
with:
|
|
version: '114'
|
|
|
|
- name: Build release contracts
|
|
run: make contracts
|
|
|
|
- name: Upload Mixnet Contract Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: mixnet_contract.wasm
|
|
path: contracts/target/wasm32-unknown-unknown/release/mixnet_contract.wasm
|
|
retention-days: 5
|
|
|
|
- name: Upload Vesting Contract Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: vesting_contract.wasm
|
|
path: contracts/target/wasm32-unknown-unknown/release/vesting_contract.wasm
|
|
retention-days: 5
|
|
|
|
- name: Upload to release based on tag name
|
|
uses: softprops/action-gh-release@v2
|
|
if: github.event_name == 'release'
|
|
with:
|
|
files: |
|
|
contracts/target/wasm32-unknown-unknown/release/vesting_contract.wasm
|
|
contracts/target/wasm32-unknown-unknown/release/mixnet_contract.wasm
|