PaulRBerg / foundry-multibuild

GitHub Action for building a Foundry project with a range of Solidity versions
https://github.com/marketplace/actions/foundry-multibuild
MIT License
39 stars 3 forks source link
foundry solidity

Foundry Multibuild

A GitHub Action for testing that a Foundry project can be built with a range of Solidity versions.

This is useful to continuously check that your Solidity project remains compatible with all compiler versions allowed by your pragma.

Usage

Tip: you probably don't want to run this action on every push to your repository. Instead, you may want to run it on a cron schedule, e.g., once per week.

- uses: PaulRBerg/foundry-multibuild@v1
  with:
    min: "0.8.0"
    max: "0.8.27"
    skip-test: "true"

Inputs

Name Required Default Description
min Yes 0.8.0 Minimum Solidity version to build with
max Yes 0.8.27 Maximum Solidity version to build with
skip-test No True Whether to skip compiling the test directory

Examples

See how this action is used in the wild:

License

This project is licensed under MIT.