Skip to content

sc 0.43.4

sc 0.43.4 #80

Workflow file for this run

name: Upload assets on release
on:
release:
types:
- created
permissions:
contents: write
jobs:
build:
name: Upload release asset to ${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-08-08
target: wasm32-unknown-unknown
- name: Setup the PATH variable
run: |
echo "PATH=$HOME/.local/bin:$HOME/multiversx-sdk/vmtools:$PATH" >> $GITHUB_ENV
- name: Install prerequisites
run: |
pip3 install multiversx-sdk-cli==v6.0.0
mkdir $HOME/multiversx-sdk
python3 -m multiversx_sdk_cli.cli deps install vmtools --tag v1.4.60
wget -O binaryen.tar.gz https://github.com/WebAssembly/binaryen/releases/download/version_112/binaryen-version_112-x86_64-linux.tar.gz
tar -xf binaryen.tar.gz
cp binaryen-version_112/bin/wasm-opt $HOME/.local/bin
sudo apt install -y wabt=1.0.27-1
which wasm-opt
which wasm2wat
which run-scenarios
- name: Install libtinfo5
if: inputs.install-libtinfo5
run: |
sudo apt update
sudo apt install -y libtinfo5
- name: Build project example outputs
run: |
./zip-example-wasm.sh
- name: Upload binaries to release ${{ github.ref }}
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./examples-wasm.zip
asset_name: examples-wasm.zip
overwrite: true
body: "This is my release text"