Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install-libtinfo5 flag #5

Merged
merged 2 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.