Skip to content

Commit

Permalink
chore(spec): remove cross config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Oct 24, 2023
1 parent daf2d25 commit b627747
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
- name: Build and push image
run: |
cargo install cross
env PROFILE=maxperf make docker-build-latest
env PROFILE=release make docker-build-latest
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ tracing = "0.1.37"
strum = "0.25.0"
url = "2.3.1"

[profile.maxperf]
inherits = "release"
lto = "fat"
codegen-units = 1
incremental = false
6 changes: 0 additions & 6 deletions Cross.toml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Adapted from https://github.com/paradigmxyz/reth/blob/main/Dockerfile
# syntax=docker/dockerfile:1.4

FROM rust:1.72.0 AS chef-builder
FROM --platform=$TARGETPLATFORM rust:1.72.0 AS chef-builder

# Install system dependencies
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
Expand Down
16 changes: 0 additions & 16 deletions Dockerfile.cross

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define build_docker_image
mkdir -p $(BIN_DIR)/arm64
cp $(BUILD_PATH)/aarch64-unknown-linux-gnu/$(PROFILE)/rundler $(BIN_DIR)/arm64/rundler

docker buildx build --file ./Dockerfile.cross . \
docker buildx build . \
--platform linux/amd64,linux/arm64 \
--tag $(DOCKER_IMAGE_NAME):$(1) \
--tag $(DOCKER_IMAGE_NAME):$(2) \
Expand Down

0 comments on commit b627747

Please sign in to comment.