Skip to content

Commit e0a9b81

Browse files
committed
Add CI, rename binary
1 parent df5a697 commit e0a9b81

File tree

10 files changed

+677
-64
lines changed

10 files changed

+677
-64
lines changed

.dockerignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Include any files or directories that you don't want to be copied to your
2+
# container here (e.g., local build artifacts, temporary files, etc.).
3+
#
4+
# For more help, visit the .dockerignore file reference guide at
5+
# https://docs.docker.com/go/build-context-dockerignore/
6+
7+
**/.DS_Store
8+
**/.classpath
9+
**/.dockerignore
10+
**/.env
11+
**/.git
12+
**/.gitignore
13+
**/.project
14+
**/.settings
15+
**/.toolstarget
16+
**/.vs
17+
**/.vscode
18+
**/*.*proj.user
19+
**/*.dbmdl
20+
**/*.jfm
21+
**/charts
22+
**/docker-compose*
23+
**/compose.y*ml
24+
**/Dockerfile*
25+
**/node_modules
26+
**/npm-debug.log
27+
**/secrets.dev.yaml
28+
**/values.dev.yaml
29+
/target
30+
LICENSE
31+
README.md

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Taken form upstream reth
2+
# https://github.com/paradigmxyz/reth/blob/3212af2d85a54eb207661361ac9fe1d7de4b5b8e/.github/workflows/docker.yml
3+
4+
name: release
5+
6+
on:
7+
push:
8+
tags:
9+
- v*
10+
11+
env:
12+
REPO_NAME: ${{ github.repository_owner }}/fraxtal-op-reth
13+
IMAGE_NAME: ${{ github.repository_owner }}/fraxtal-op-reth
14+
DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/fraxtal-op-reth
15+
CARGO_TERM_COLOR: always
16+
DOCKER_USERNAME: ${{ github.actor }}
17+
18+
jobs:
19+
build:
20+
name: build and push
21+
runs-on: ubuntu-20.04
22+
permissions:
23+
packages: write
24+
contents: read
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
28+
- uses: Swatinem/rust-cache@v2
29+
with:
30+
cache-on-failure: true
31+
- uses: taiki-e/install-action@cross
32+
- name: Log in to Docker
33+
run: |
34+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
35+
- name: Set up Docker builder
36+
run: |
37+
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
38+
docker buildx create --use --name cross-builder
39+
- name: Build and push fraxtal-op-reth image, tag as "latest"
40+
run: make PROFILE=maxperf docker-build-push-latest
41+
- name: Build and push fraxtal-op-reth image
42+
run: make PROFILE=maxperf docker-build-push

Cargo.lock

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
2-
members = ["bin/op-fraxtal", "crates/node", "crates/evm", "crates/payload"]
3-
default-members = ["bin/op-fraxtal"]
2+
members = ["bin/fraxtal-op-reth", "crates/node", "crates/evm", "crates/payload"]
3+
default-members = ["bin/fraxtal-op-reth"]
44
resolver = "2"
55

66
[workspace.package]
@@ -56,9 +56,9 @@ alloy-rpc-types-debug = { version = "0.9.2", default-features = false }
5656
alloy-rpc-types-engine = { version = "0.9.2", default-features = false }
5757

5858
# op
59-
op-alloy-consensus = { version = "0.9.0", default-features = false }
60-
op-alloy-rpc-types = { version = "0.9.0", default-features = false }
61-
op-alloy-rpc-types-engine = { version = "0.9.0", default-features = false }
59+
op-alloy-consensus = { version = "=0.9.0", default-features = false }
60+
op-alloy-rpc-types = { version = "=0.9.0", default-features = false }
61+
op-alloy-rpc-types-engine = { version = "=0.9.0", default-features = false }
6262

6363
# revm
6464
revm = { version = "19.4.0", default-features = false }

Cross.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build]
2+
pre-build = [
3+
# rust-bindgen dependencies: llvm-dev libclang-dev (>= 5.0) clang (>= 5.0)
4+
"apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-6.0-dev clang-6.0"
5+
]
6+
7+
[build.env]
8+
passthrough = [
9+
"JEMALLOC_SYS_WITH_LG_PAGE",
10+
]

0 commit comments

Comments
 (0)