diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 01c4e7291e49..ddad7d5781b0 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -62,7 +62,7 @@ jobs: bench-success: if: always() name: bench success - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # Note: This check is a dummy because we don't have any bench checks enabled. - run: echo OK. diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 867a9e21eb2c..98796115678f 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest name: test timeout-minutes: 60 @@ -31,7 +31,7 @@ jobs: run: mdbook test lint: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest name: lint timeout-minutes: 60 @@ -50,7 +50,7 @@ jobs: run: mdbook-linkcheck --standalone build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -113,7 +113,7 @@ jobs: deploy: # Only deploy if a push to main if: github.ref_name == 'main' && github.event_name == 'push' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [test, lint, build] # Grant GITHUB_TOKEN the permissions required to make a Pages deployment diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 8332723b8129..f4ee00981068 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -18,7 +18,7 @@ concurrency: deny-${{ github.head_ref || github.run_id }} jobs: deny: name: deny - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: EmbarkStudios/cargo-deny-action@v1 diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 07a31797afb9..d1175b61eaca 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -64,7 +64,7 @@ jobs: fuzz-success: if: always() name: fuzz success - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: all steps: # Note: This check is a dummy because we currently have fuzz tests disabled. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1417695755f1..8b980a5b1b2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,38 +15,42 @@ env: jobs: extract-version: name: extract version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Extract version run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_OUTPUT id: extract_version outputs: VERSION: ${{ steps.extract_version.outputs.VERSION }} + build: name: build release strategy: matrix: - arch: [aarch64-unknown-linux-gnu, - x86_64-unknown-linux-gnu, - x86_64-apple-darwin, - aarch64-apple-darwin, - x86_64-pc-windows-gnu] + arch: + [ + aarch64-unknown-linux-gnu, + x86_64-unknown-linux-gnu, + x86_64-apple-darwin, + aarch64-apple-darwin, + x86_64-pc-windows-gnu, + ] include: - - arch: aarch64-unknown-linux-gnu - platform: ubuntu-20.04 - profile: maxperf - - arch: x86_64-unknown-linux-gnu - platform: ubuntu-20.04 - profile: maxperf - - arch: x86_64-apple-darwin - platform: macos-latest - profile: maxperf - - arch: aarch64-apple-darwin - platform: macos-latest - profile: maxperf - - arch: x86_64-pc-windows-gnu - platform: ubuntu-20.04 - profile: maxperf + - arch: aarch64-unknown-linux-gnu + platform: ubuntu-20.04 + profile: maxperf + - arch: x86_64-unknown-linux-gnu + platform: ubuntu-20.04 + profile: maxperf + - arch: x86_64-apple-darwin + platform: macos-latest + profile: maxperf + - arch: aarch64-apple-darwin + platform: macos-latest + profile: maxperf + - arch: x86_64-pc-windows-gnu + platform: ubuntu-20.04 + profile: maxperf runs-on: ${{ matrix.platform }} needs: extract-version @@ -76,18 +80,18 @@ jobs: # ============================== - name: Build reth for ${{ matrix.arch }} - run: | + run: | cargo install cross env PROFILE=${{ matrix.profile }} make build-${{ matrix.arch }} - name: Move cross-compiled binary - if: matrix.arch != 'x86_64-pc-windows-gnu' + if: matrix.arch != 'x86_64-pc-windows-gnu' run: | mkdir artifacts mv target/${{ matrix.arch }}/${{ matrix.profile }}/reth ./artifacts - name: Move cross-compiled binary (Windows) - if: matrix.arch == 'x86_64-pc-windows-gnu' + if: matrix.arch == 'x86_64-pc-windows-gnu' run: | mkdir artifacts mv target/${{ matrix.arch }}/${{ matrix.profile }}/reth.exe ./artifacts @@ -113,8 +117,8 @@ jobs: # Upload artifacts # This is required to share artifacts between different jobs # ======================================================================= - - name: Upload artifact - uses: actions/upload-artifact@v3 + - name: Upload artifact + uses: actions/upload-artifact@v3 with: name: reth-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz path: reth-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz @@ -127,10 +131,10 @@ jobs: draft-release: name: draft release - needs: [build, extract-version] - runs-on: ubuntu-20.04 + needs: [build, extract-version] + runs-on: ubuntu-latest env: - VERSION: ${{ needs.extract-version.outputs.VERSION }} + VERSION: ${{ needs.extract-version.outputs.VERSION }} permissions: # Required to post the release contents: write @@ -162,54 +166,55 @@ jobs: GITHUB_USER: ${{ github.repository_owner }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # The formatting here is borrowed from Lighthouse (which is borrowed from OpenEthereum): https://github.com/openethereum/openethereum/blob/main/.github/workflows/build.yml + # The formatting here is borrowed from Lighthouse (which is borrowed from OpenEthereum): + # https://github.com/openethereum/openethereum/blob/main/.github/workflows/build.yml run: | body=$(cat <<- "ENDBODY" - + ## Testing Checklist (DELETE ME) - + - [ ] Run on testnet for 1-3 days. - [ ] Resync a mainnet node. - [ ] Ensure all CI checks pass. - + ## Release Checklist (DELETE ME) - + - [ ] Ensure all crates have had their versions bumped. - [ ] Write the summary. - [ ] Fill out the update priority. - [ ] Ensure all binaries have been added. - [ ] Prepare release posts (Twitter, ...). - + ## Summary - + Add a summary, including: - + - Critical bug fixes - New features - Any breaking changes (and what to expect) - + ## Update Priority - + This table provides priorities for which classes of users should update particular components. - + | User Class | Priority | |----------------------|-----------------| | Payload Builders | | | Non-Payload Builders | | - + *See [Update Priorities](https://paradigmxyz.github.io/reth/installation/priorities.html) for more information about this table.* - + ## All Changes - + ${{ steps.changelog.outputs.CHANGELOG }} - + ## Binaries - + [See pre-built binaries documentation.](https://paradigmxyz.github.io/reth/installation/binaries.html) - + The binaries are signed with the PGP key: `A3AE 097C 8909 3A12 4049 DF1F 5391 A3C4 1005 30B4` - + | System | Architecture | Binary | PGP Signature | |:---:|:---:|:---:|:---| | | x86_64 | [reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz) | [PGP Signature](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/reth-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz.asc) | diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 71ec1b495c22..8b1e6f67161d 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -15,7 +15,7 @@ env: name: sanity jobs: dep-version-constraints: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest name: dep version constraints test (partition ${{ matrix.partition }}/${{ strategy.job-total }}) strategy: matrix: @@ -64,7 +64,7 @@ jobs: filename: .github/SANITY_DEPS_ISSUE_TEMPLATE.md unused-deps: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest name: unused dependencies steps: - name: Checkout sources diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 31ce92c2685b..5328cc95e8fc 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: jobs: close-issues: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: issues: write pull-requests: write diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 3d1fe6f9746a..3d398593b5e5 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -102,7 +102,7 @@ jobs: unit-success: if: always() name: unit success - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [test, eth-blockchain, doc-test] timeout-minutes: 60 steps: