Skip to content

test: downgrade to reth 1.8.4 (#91) #3

test: downgrade to reth 1.8.4 (#91)

test: downgrade to reth 1.8.4 (#91) #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
env:
CARGO_TERM_COLOR: always
jobs:
build-release:
name: build-release
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install cross-compilation tools
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Build release binary
run: make build-maxperf
- name: Create tarball
if: matrix.os != 'windows-latest'
run: |
cd target/${{ matrix.target }}/release
tar czf ev-reth-${{ matrix.target }}.tar.gz ev-reth
mv ev-reth-${{ matrix.target }}.tar.gz ../../../
- name: Create zip
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
cd target/${{ matrix.target }}/release
Compress-Archive -Path ev-reth.exe -DestinationPath ../../../ev-reth-${{ matrix.target }}.zip
- name: Upload artifacts
uses: actions/upload-artifact@v5
with:
name: ev-reth-${{ matrix.target }}
path: |
ev-reth-*.tar.gz
ev-reth-*.zip
create-release:
name: create-release
needs: build-release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Download artifacts
uses: actions/download-artifact@v6
with:
path: artifacts
pattern: ev-reth-*
merge-multiple: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
generate_release_notes: true
files: |
artifacts/ev-reth-*.tar.gz
artifacts/ev-reth-*.zip