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...
71 lines
2.1 KiB
YAML
71 lines
2.1 KiB
YAML
name: ci-contracts-upload-binaries
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
NETWORK: mainnet
|
|
|
|
jobs:
|
|
publish-nym-contracts:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ arc-ubuntu-20.04 ]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Prepare build output directory
|
|
shell: bash
|
|
env:
|
|
OUTPUT_DIR: ci-contract-builds/${{ github.ref_name }}
|
|
run: |
|
|
rm -rf ci-contract-builds || true
|
|
mkdir -p $OUTPUT_DIR
|
|
echo $OUTPUT_DIR
|
|
|
|
- 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: Install cosmwasm-check
|
|
run: cargo install cosmwasm-check
|
|
|
|
- name: Build release contracts
|
|
run: make contracts
|
|
|
|
- name: Prepare build output
|
|
shell: bash
|
|
env:
|
|
OUTPUT_DIR: ci-contract-builds/${{ github.ref_name }}
|
|
run: |
|
|
cp contracts/target/wasm32-unknown-unknown/release/mixnet_contract.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/vesting_contract.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/nym_coconut_dkg.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/cw3_flex_multisig.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/cw4_group.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/nym_ecash.wasm $OUTPUT_DIR
|
|
|
|
- name: Deploy branch to CI www
|
|
continue-on-error: true
|
|
uses: easingthemes/ssh-deploy@main
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }}
|
|
ARGS: "-avzr"
|
|
SOURCE: "ci-contract-builds/"
|
|
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }}
|
|
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }}
|
|
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/builds/
|
|
EXCLUDE: "/dist/, /node_modules/"
|