Skip to content

Commit

Permalink
Merge pull request #5 from ElrondNetwork/add-install-libtinfo5-flag
Browse files Browse the repository at this point in the history
Add `install-libtinfo5` flag
  • Loading branch information
claudiu725 authored Dec 9, 2022
2 parents 9cd6f24 + 2cb50b7 commit 305752e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 }}

Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 305752e

Please sign in to comment.