diff --git a/.circleci/config.yml b/.circleci/config.yml index 7c0db8a783cbd..356a44803d81b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,7 +15,7 @@ jobs: name: Check if we should run command: | shopt -s inherit_errexit - CHANGED=$(check-changed "packages/") + CHANGED=$(check-changed "op-bindings|packages/") if [[ "$CHANGED" = "FALSE" ]]; then circleci step halt fi @@ -165,7 +165,10 @@ jobs: fi - run: name: check go bindings - command: make && git diff --exit-code + command: | + make contracts + make -j $(nproc) + git diff --exit-code working_directory: op-bindings js-lint-test: diff --git a/op-bindings/Makefile b/op-bindings/Makefile index a6b60951a917f..6c860cc15c976 100644 --- a/op-bindings/Makefile +++ b/op-bindings/Makefile @@ -38,5 +38,9 @@ address-manager-bindings: mkdir: mkdir -p bin bindings +contracts: + cd ../packages/contracts-bedrock + forge build + clean: rm -rf bin bindings diff --git a/op-bindings/README.md b/op-bindings/README.md new file mode 100644 index 0000000000000..10114dbdf4314 --- /dev/null +++ b/op-bindings/README.md @@ -0,0 +1,9 @@ +# op-bindings + +Contains prebuilt golang bindings for Optimism contracts. + +## Build + +```bash +$ make +```