forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/devel' into devel
# Conflicts: # go.mod
- Loading branch information
Showing
1,888 changed files
with
285,883 additions
and
95,125 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -4,12 +4,12 @@ on: | |
branches: | ||
- devel | ||
- alpha | ||
- stable | ||
- 'release/**' | ||
pull_request: | ||
branches: | ||
- devel | ||
- alpha | ||
- stable | ||
- 'release/**' | ||
types: | ||
- opened | ||
- reopened | ||
|
@@ -25,14 +25,14 @@ jobs: | |
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments | ||
os: [ ubuntu-22.04, macos-13-xlarge ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version: '1.20' | ||
- name: Install dependencies on Linux | ||
if: runner.os == 'Linux' | ||
run: sudo apt update && sudo apt install build-essential | ||
|
@@ -50,11 +50,21 @@ jobs: | |
echo >&2 "Reproducible build broken"; cat erigon1.sha256; cat erigon2.sha256; exit 1 | ||
fi | ||
- name: Lint | ||
- name: Install golangci-lint | ||
if: runner.os == 'Linux' | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.52 | ||
version: v1.55.2 | ||
skip-build-cache: true | ||
args: --help | ||
|
||
- name: Install go-licenses | ||
if: runner.os == 'Linux' | ||
run: cd erigon-lib && make lint-licenses-deps | ||
|
||
- name: Lint | ||
if: runner.os == 'Linux' | ||
run: make lint | ||
|
||
- name: Test | ||
run: make test | ||
|
@@ -67,10 +77,14 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: configure Pagefile | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 8GB | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version: '1.20' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
|
@@ -80,19 +94,22 @@ jobs: | |
key: chocolatey-${{ matrix.os }} | ||
- name: Install dependencies | ||
run: | | ||
choco upgrade mingw -y --no-progress --version 11.2.0.07112021 | ||
choco install cmake -y --no-progress --version 3.23.1 | ||
choco upgrade mingw -y --no-progress --version 13.2.0 | ||
choco install cmake -y --no-progress --version 3.27.8 | ||
- name: Build | ||
run: .\wmake.ps1 all | ||
|
||
- name: Test | ||
run: .\wmake.ps1 test | ||
|
||
- name: Test erigon-lib | ||
run: cd erigon-lib && make test-no-fuzz | ||
|
||
docker-build-check: | ||
# don't run this on devel - the PR must have run it to be merged and it misleads that this pushes the docker image | ||
if: (${{ github.event_name == 'push' || !github.event.pull_request.draft }}) && ${{ github.ref != 'refs/heads/devel' }} | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: AutoModality/action-clean@v1 | ||
- uses: actions/checkout@v3 | ||
|
@@ -108,7 +125,7 @@ jobs: | |
|
||
# automated-tests: | ||
# runs-on: | ||
# ubuntu-20.04 | ||
# ubuntu-22.04 | ||
# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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,63 @@ | ||
name: Consensus specification tests | ||
on: | ||
push: | ||
branches: | ||
- devel | ||
- alpha | ||
- 'release/**' | ||
pull_request: | ||
branches: | ||
- devel | ||
- alpha | ||
- 'release/**' | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
# disable macos-11 until https://github.com/ledgerwatch/erigon/issues/8789 | ||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
- name: Install dependencies on Linux | ||
if: runner.os == 'Linux' | ||
run: sudo apt update && sudo apt install build-essential | ||
|
||
- name: test-integration-caplin | ||
run: cd cl/spectest && make tests && make mainnet | ||
|
||
tests-windows: | ||
strategy: | ||
matrix: | ||
os: [ windows-2022 ] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
C:\ProgramData\chocolatey\lib\mingw | ||
C:\ProgramData\chocolatey\lib\cmake | ||
key: chocolatey-${{ matrix.os }} | ||
- name: Install dependencies | ||
run: | | ||
choco upgrade mingw -y --no-progress --version 13.2.0 | ||
choco install cmake -y --no-progress --version 3.27.8 | ||
- name: test-integration-caplin | ||
run: cd ./cl/spectest/ && .\wmake.ps1 Tests Mainnet |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.