From e7fe871427a2836a454797497bda12697a353cb8 Mon Sep 17 00:00:00 2001 From: ovidiuolteanu Date: Tue, 22 Oct 2024 13:05:57 +0300 Subject: [PATCH] feat: gh actions --- .github/workflows/actions.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/release.yml | 15 +++++++++++++++ dummy-proxy/wasm/src/lib.rs | 4 +++- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/actions.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..c166a6c --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [ main, feat/*, rc/* ] + pull_request: + branches: [ main, feat/*, rc/* ] + workflow_dispatch: + +permissions: + actions: write + checks: write + contents: write + id-token: write + issues: write + discussions: write + pull-requests: write + statuses: write + +jobs: + contracts: + name: Contracts + uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.3.1 + with: + rust-toolchain: nightly-2024-05-22 + coverage-args: --ignore-filename-regex='/.cargo/git' --output ./coverage.md + secrets: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3bb9fa3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: On release build and attach artifacts + +on: + release: + types: [published] + +permissions: + contents: write + +jobs: + build: + uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v3.3.1 + with: + image_tag: v7.0.0 + attach_to_existing_release: true diff --git a/dummy-proxy/wasm/src/lib.rs b/dummy-proxy/wasm/src/lib.rs index b321f50..c85c09a 100644 --- a/dummy-proxy/wasm/src/lib.rs +++ b/dummy-proxy/wasm/src/lib.rs @@ -5,9 +5,10 @@ //////////////////////////////////////////////////// // Init: 1 +// Upgrade: 1 // Endpoints: 3 // Async Callback (empty): 1 -// Total number of exported functions: 5 +// Total number of exported functions: 6 #![no_std] @@ -18,6 +19,7 @@ multiversx_sc_wasm_adapter::endpoints! { dummy_proxy ( init => init + upgrade => upgrade callEndpoint => call_endpoint callInternalTransferEndpoint => call_int_transfer_endpoint callTransferEndpoint => call_transfer_endpoint