-
Notifications
You must be signed in to change notification settings - Fork 26
Build external repos that depend on evm #504
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
Merged
+73
−0
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
21422c4
Build external repos that depend on evm
dhaidashenko b20416b
Pin to commit
dhaidashenko 79992b0
Update .github/workflows/build_external.yml
dhaidashenko 3ba8a02
Update .github/workflows/build_external.yml
dhaidashenko acb1f20
Update .github/workflows/build_external.yml
dhaidashenko 80f4b08
Update .github/workflows/build_external.yml
dhaidashenko eb13d86
Use action to get refs from pr body
dhaidashenko 5b19b0f
Switch to dedicated action
dhaidashenko 3d5014f
fix version
dhaidashenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Builds external repositories that use this so we can create tickets to update them before their ci pipelines break. | ||
| # NOTE: This is not a required check to merge, merely a check so you know to update the products that rely on this. | ||
| name: Build External Repositories | ||
| on: | ||
| pull_request: | ||
|
|
||
| # Only run 1 of this workflow at a time per PR | ||
| concurrency: | ||
| group: integration-build-check-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| init: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| outputs: | ||
| core-ref: ${{ steps.set-git-refs.outputs.core-ref }} | ||
| solana-ref: ${{ steps.set-git-refs.outputs.solana-ref }} | ||
| starknet-ref: ${{ steps.set-git-refs.outputs.starknet-ref }} | ||
| steps: | ||
| - name: Get refs from PR body | ||
| id: set-git-refs | ||
| uses: smartcontractkit/.github/actions/get-refs-from-pr-body@get-refs-from-pr-body/v1 | ||
| with: | ||
| sigscanner-url: ${{ secrets.SIGSCANNER_URL }} | ||
| sigscanner-api-key: ${{ secrets.SIGSCANNER_API_KEY }} | ||
|
|
||
| build-chainlink: | ||
| needs: init | ||
| environment: | ||
| name: integration | ||
| deployment: false | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| name: Build Chainlink | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| steps: | ||
|
dhaidashenko marked this conversation as resolved.
|
||
| - name: Checkout the chainlink-evm repo | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: smartcontractkit/chainlink-evm | ||
| persist-credentials: false | ||
| path: chainlink-evm | ||
|
dhaidashenko marked this conversation as resolved.
|
||
|
|
||
| - name: Checkout the chainlink core repo | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: smartcontractkit/chainlink | ||
| ref: ${{ needs.init.outputs.core-ref }} | ||
| persist-credentials: false | ||
| path: chainlink | ||
|
|
||
| - name: Setup Go | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment on lines
+51
to
+59
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed on Slack. The upstream script parses out the ref and only those with write access can create a ref on the /chainlink repo. |
||
| uses: ./chainlink-evm/.github/actions/setup-go | ||
| with: | ||
| go-version-file: "chainlink/go.mod" | ||
| only-modules: "true" | ||
|
|
||
| - name: Build /chainlink | ||
| shell: bash | ||
| env: | ||
| CL_EVM_SHA: ${{ github.event.pull_request.head.sha }} | ||
| working-directory: chainlink | ||
| run: | | ||
| go get "github.com/smartcontractkit/chainlink-evm@${CL_EVM_SHA}" | ||
| go mod tidy | ||
| make install-chainlink | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.