From 0db07d14b28db6aa64eeec8b2b416e42e67bfc8c Mon Sep 17 00:00:00 2001 From: Claudiu-Marcel Bruda Date: Fri, 9 Dec 2022 11:52:11 +0200 Subject: [PATCH 1/2] add install-libtinfo5 flag --- .github/workflows/contracts.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/contracts.yml b/.github/workflows/contracts.yml index 5744416..8e3f9cd 100644 --- a/.github/workflows/contracts.yml +++ b/.github/workflows/contracts.yml @@ -28,6 +28,11 @@ on: default: '--all-targets --all-features' required: false type: string + install-libtinfo5: + description: 'install libtinfo5' + default: false + required: false + type: boolean secrets: token: description: 'Github token' @@ -60,6 +65,12 @@ jobs: cargo install twiggy + - name: Install libtinfo5 + if: inputs.install-libtinfo5 + run: | + sudo apt update + sudo apt install -y libtinfo5 + - name: Build the wasm contracts run: erdpy contract build -r ${{ inputs.extra-build-args }} From 2cb50b7667072321d9ed934cd64cabd4eeed6e7c Mon Sep 17 00:00:00 2001 From: Claudiu-Marcel Bruda Date: Fri, 9 Dec 2022 12:09:32 +0200 Subject: [PATCH 2/2] add readme entry for install-libtinfo5 --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d69417a..cf6453b 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,20 @@ permissions: pull-requests: write ``` -### Additional options +## Additional options + +### Using a custom erdpy version The erdpy version can be specified by providing: ```yml pip-erdpy-args: erdpy==1.2.3 ``` + +### Installing libtinfo5 + +When building smart contracts written in C, on ubuntu, the libtinfo5 has to be installed as clang requires this. +This can be optionally enabled by specifying: +```yml +install-libtinfo5: true +``` +Note: if using a matrix build with multiple operating systems, enable this only for ubuntu.