mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 14:14:30 +00:00
> [!NOTE] > This will be merged into `main` once the current target branch has been merged. ## Why this should be merged My original implementation was back to front and it's been bugging me. ## How this works Originally `params.LibEVMVersion` was a `var` (because it needed to be computed) and the test used a `const`. This change simply inverts the two and moves some code around without any change in logic. I bumped the minor version to 2 (a no-op when not on a release branch) to bring it in line with the latest release candidate and to avoid forgetting to do so when performing an actual release. ## How this was tested Unit test of version-string constant.
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
name: libevm delta
|
|
|
|
on:
|
|
push:
|
|
branches: [main, "release/**"]
|
|
pull_request:
|
|
branches: [main, "release/**"]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
jobs:
|
|
diffs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # everything
|
|
fetch-tags: true
|
|
|
|
- name: Find base commit hash
|
|
id: base-commit
|
|
run: echo "LIBEVM_BASE=$(git rev-list --author "github-actions\[bot\]" --grep "rename Go module" -n 1 origin/main)" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Color-blindness a11y
|
|
run:
|
|
| # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
|
|
git config color.diff.old "#DC3220";
|
|
git config color.diff.new "#005AB5";
|
|
|
|
- name: git diff ${{ steps.base-commit.outputs.LIBEVM_BASE }}
|
|
run: |
|
|
git diff --diff-filter=a --word-diff --unified=0 --color=always \
|
|
${{ steps.base-commit.outputs.LIBEVM_BASE }} \
|
|
':(exclude).golangci.yml' \
|
|
':(exclude).github/**' \
|
|
':(exclude)README.md';
|
|
|
|
- name: git diff ${{ steps.base-commit.outputs.LIBEVM_BASE }}..main
|
|
run: |
|
|
git checkout main --;
|
|
git diff --diff-filter=a --word-diff --unified=0 --color=always \
|
|
"${{ steps.base-commit.outputs.LIBEVM_BASE }}" \
|
|
':(exclude).golangci.yml' \
|
|
':(exclude).github/**' \
|
|
':(exclude)README.md';
|