Skip to content
star

GitHub Action

Setup dapptools environment

v4 Latest version

Setup dapptools environment

star

Setup dapptools environment

Setup a dapptools environment by downloading and adding it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup dapptools environment

uses: risedle/setup-dapptools@v4

Learn more about this action in risedle/setup-dapptools

Choose a version

setup-dapptools

This action provides access to dapptools for GitHub Actions users.

Usage

See action.yaml

Basic:

steps:
  - uses: actions/checkout@v2
  - uses: risedle/setup-dapptools@v4
  - run: dapp build

dapptools version

You can add tarball as the input to specify the dapptools version:

steps:
  - uses: actions/checkout@v2
  - uses: risedle/setup-dapptools@v4
    with:
      tarball: "https://github.com/dapphub/dapptools/archive/refs/tags/hevm/0.49.0.tar.gz"
  - run: dapp build

solc version

You can also install the specific solc version using the following configuration:

steps:
  - uses: actions/checkout@v2
  - uses: risedle/setup-dapptools@v4
    with:
      solc: "solc_0_8_11"
  - run: dapp build
    env:
    DAPP_SOLC_VERSION: 0.8.11

For a list of the supported solc versions, check solc-static-versions.nix.

License

The scripts and documentation in this project are released under the MIT License