Skip to content

Setup solc

Actions
Install the Solidity compiler
v0.2.0
Latest
Star (0)

setup-solc

A GitHub action for installing the Solidity compiler, solc.

Usage

jobs:
  example_setup_solc_usage:
    name: print-solc-version
    runs-on: ubuntu-latest
    steps:
        - uses: arr4n/[email protected]
          with:
            version: 0.8.30 # installed as solc
            versions: '0.8.25,0.8.28' # installed as solc-v0.8.25 and solc-v0.8.28

        - run: |
          solc --version;
          solc-v0.8.25 --version;
          solc-v0.8.28 --version;

The specified version(s) MUST be specific semver (without a "v" prefix). Caret (^), tilde (~) and keyword (e.g. "latest") versions are deliberately unsupported because blockchain development requires precision.

Setup solc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install the Solidity compiler
v0.2.0
Latest

Setup solc is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.