6de0c4ce92
* initialised basic structure for the performance contract * shared code for contract testing * unified common testing methods between performance and nym pool contracts * impl of ExecuteMsg for the contract * impl of QueryMsg for the contract * setting initial authorised NMs during instantiation * additional tests and fixes * ibid * scaffolding for client traits * completed client traits * clippy * naive add performance contract to testnet manager * placeholder values for the performance contract address * introduced admin messages to purge old measurements from the storage * introduced check ensuring performance data is only added to bonded nodes
73 lines
2.3 KiB
YAML
73 lines
2.3 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-22.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
|
|
cp contracts/target/wasm32-unknown-unknown/release/nym_pool_contract.wasm $OUTPUT_DIR
|
|
cp contracts/target/wasm32-unknown-unknown/release/nym_performance_contract.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/"
|