Skip to content

Commit

Permalink
Merge pull request #3 from ovidiuolteanu/actions
Browse files Browse the repository at this point in the history
feat: gh actions
  • Loading branch information
ovidiuolteanu authored Oct 22, 2024
2 parents a795e17 + e7fe871 commit f03adc2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
rust-toolchain: nightly-2024-05-22
coverage-args: --ignore-filename-regex='/.cargo/git' --output ./coverage.md
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
image_tag: v7.0.0
attach_to_existing_release: true
4 changes: 3 additions & 1 deletion dummy-proxy/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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
Expand Down

0 comments on commit f03adc2

Please sign in to comment.