Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: solidity native compile diff checks #15312

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,27 +76,41 @@ jobs:
steps:
- name: Checkout the repo
uses: actions/checkout@v4.2.1
with:
path: chainlink

- name: Checkout diff-so-fancy
uses: actions/checkout@v4.2.1
with:
repository: so-fancy/diff-so-fancy
ref: a673cb4d2707f64d92b86498a2f5f71c8e2643d5 # v1.4.3
path: diff-so-fancy

- name: Install diff-so-fancy
run: echo "$GITHUB_WORKSPACE/diff-so-fancy" >> $GITHUB_PATH

- name: Setup NodeJS
uses: ./.github/actions/setup-nodejs
uses: ./chainlink/.github/actions/setup-nodejs
with:
base-path: "chainlink"
prod: "true"

- name: Setup Go
uses: ./.github/actions/setup-go
uses: ./chainlink/.github/actions/setup-go
with:
go-version-file: "chainlink/go.mod"

- name: Run native compile and generate wrappers
working-directory: ./chainlink/contracts
run: make wrappers-all
working-directory: ./contracts

- name: Verify local solc binaries
working-directory: chainlink
run: ./tools/ci/check_solc_hashes

- name: Check if Go solidity wrappers are updated
if: ${{ needs.changes.outputs.changes == 'true' }}
working-directory: chainlink
run: |
git add --all
git diff --minimal --color --cached --exit-code | diff-so-fancy
Expand Down
Loading