Skip to content

feat(makefile): add a Makefile to help create bindings crate. #33

feat(makefile): add a Makefile to help create bindings crate.

feat(makefile): add a Makefile to help create bindings crate. #33

Workflow file for this run

name: Solidity
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
working-directory: contracts
run: forge install
- name: Run forge tests
working-directory: contracts
run: forge test
bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Pull library deps
working-directory: contracts
run: forge install
- name: Check fmt
working-directory: contracts
run: forge fmt --check
- name: Build contracts before checking bindings are correct
working-directory: contracts
run: forge build --sizes
- name: Check bindings are correct
run: forge bind --bindings-path ./crates/bindings --root ./contracts --crate-name bindings --skip-cargo-toml