Skip to content

Commit

Permalink
git ref sc-meta
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Dec 13, 2024
1 parent f201389 commit f462924
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
default: 'nightly'
required: false
type: string
sc-meta-hash-git:
description: 'multiversx-sc-meta git commit hash'
default: ''
required: false
type: string
sc-meta-version:
description: 'multiversx-sc-meta version'
default: ''
Expand Down Expand Up @@ -181,7 +186,13 @@ jobs:
cargo install wasm-opt
cargo install twiggy
if [[ "${{ inputs.path-to-sc-meta }}" ]];
if [[ -n "${{ inputs.sc-meta-hash-git }}" ]];
then
git clone https://github.com/multiversx/mx-sdk-rs.git sdk
cd sdk/ && git checkout ${{ inputs.sc-meta-hash-git }}
cargo install --path $(pwd)/framework/meta
cd .. && rm -rf sdk
elif [[ "${{ inputs.path-to-sc-meta }}" ]];
then
cargo install --path ${{ inputs.path-to-sc-meta }}
elif [[ -z "${{ inputs.sc-meta-version }}" ]];
Expand Down

0 comments on commit f462924

Please sign in to comment.