diff --git a/.circleci/config.yml b/.circleci/config.yml index 12fd931fcd8..496cfe87dec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1257,6 +1257,18 @@ jobs: when: on_fail - notify-failures-on-develop + contracts-bedrock-upload: + machine: true + resource_class: ethereum-optimism/latitude-1 + steps: + - check-changed: + patterns: contracts-bedrock + - get-target-branch + - run: + name: upload selectors + command: just update-selectors + working_directory: packages/contracts-bedrock + contracts-bedrock-checks: docker: - image: <> @@ -2597,6 +2609,11 @@ workflows: - contracts-bedrock-build context: - circleci-repo-readonly-authenticated-github-token + - contracts-bedrock-upload: + requires: + - contracts-bedrock-build + context: + - circleci-repo-readonly-authenticated-github-token - diff-fetcher-forge-artifacts: context: - circleci-repo-readonly-authenticated-github-token diff --git a/packages/contracts-bedrock/justfile b/packages/contracts-bedrock/justfile index 434b768f8e4..66193552e29 100644 --- a/packages/contracts-bedrock/justfile +++ b/packages/contracts-bedrock/justfile @@ -286,6 +286,10 @@ lint-forge-tests-check: build lint-forge-tests-check-no-build lint-check: forge fmt --check +# Updates the selectors for the contracts +update-selectors: + forge selectors up --all + # Checks for unused imports in Solidity contracts. Does not build contracts. unused-imports-check-no-build: go run ./scripts/checks/unused-imports @@ -380,6 +384,7 @@ pre-pr *ARGS: just build-source just check + # Restore build artifacts after running checks. if [ -d "$TEMP_BUILD_DIR" ]; then cp -r "$TEMP_BUILD_DIR/artifacts" ./