Skip to content

Commit

Permalink
Merge pull request #78 from testinprod-io/upstream-v2.44.0
Browse files Browse the repository at this point in the history
Upstream sync - v2.44.0
  • Loading branch information
ImTei authored Jul 18, 2023
2 parents b7a87e8 + 9f0ffd0 commit b540214
Show file tree
Hide file tree
Showing 715 changed files with 26,234 additions and 18,285 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check

on:
push:
branches:
- devel
workflow_dispatch:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- run: echo ${GITHUB_REF}
- run: echo ${GITHUB_REF#refs/tags/}
- run: echo ${GITHUB_REF##*/}
41 changes: 41 additions & 0 deletions .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docker tags

on:
push:
tags:
- 'y*.*.*'
workflow_dispatch:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: dockerhub-login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: ghcr-login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/setup-qemu-action@v2

- run: |
make release-dry-run
docker images
# docker image push --all-tags thorax/erigon
# docker image push --all-tags ghcr.io/ledgerwatch/erigon
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF#refs/tags/}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- run: echo ${{ steps.prepare.outputs.tag_name }}

- name: Run GoReleaser
run: |
make release
docker images
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ docker-compose.*.yml
coverage.out

dist
__debug_bin
__debug_bin

*.log
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
tags: [ nosqlite, noboltdb, netgo ]
tags: [ nosqlite, noboltdb ]
ldflags: -s -w

- id: darwin-arm64
Expand All @@ -25,7 +25,7 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
tags: [ nosqlite, noboltdb, netgo ]
tags: [ nosqlite, noboltdb ]
ldflags: -s -w

- id: linux-amd64
Expand All @@ -36,7 +36,7 @@ builds:
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
tags: [ nosqlite, noboltdb, netgo ]
tags: [ nosqlite, noboltdb ]
ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container

- id: linux-arm64
Expand All @@ -47,7 +47,7 @@ builds:
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
tags: [ nosqlite, noboltdb, netgo ]
tags: [ nosqlite, noboltdb ]
ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container

# - id: windows-amd64
Expand All @@ -58,7 +58,7 @@ builds:
# env:
# - CC=x86_64-w64-mingw32-gcc
# - CXX=x86_64-w64-mingw32-g++
# tags: [ nosqlite, noboltdb, netgo ]
# tags: [ nosqlite, noboltdb ]
# ldflags: -s -w


Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ COPY --from=tools-builder /app/build/bin/mdbx_stat /usr/local/bin/mdbx_stat
COPY --from=builder /app/build/bin/devnet /usr/local/bin/devnet
COPY --from=builder /app/build/bin/downloader /usr/local/bin/downloader
COPY --from=builder /app/build/bin/erigon /usr/local/bin/erigon
COPY --from=builder /app/build/bin/erigon-cl /usr/local/bin/erigon-cl
COPY --from=builder /app/build/bin/evm /usr/local/bin/evm
COPY --from=builder /app/build/bin/hack /usr/local/bin/hack
COPY --from=builder /app/build/bin/integration /usr/local/bin/integration
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CGO_CFLAGS += -Wno-error=strict-prototypes # for Clang15, remove it when can htt
CGO_CFLAGS := CGO_CFLAGS="$(CGO_CFLAGS)"
DBG_CGO_CFLAGS += -DMDBX_DEBUG=1

BUILD_TAGS = nosqlite,noboltdb,netgo # about netgo see: https://github.com/golang/go/issues/30310#issuecomment-471669125
BUILD_TAGS = nosqlite,noboltdb # about netgo see: https://github.com/golang/go/issues/30310#issuecomment-471669125 and https://github.com/golang/go/issues/57757
PACKAGE = github.com/testinprod-io/op-erigon

GO_FLAGS += -trimpath -tags $(BUILD_TAGS) -buildvcs=false
Expand Down Expand Up @@ -108,7 +108,6 @@ erigon: go-version erigon.cmd
COMMANDS += devnet
COMMANDS += erigon-el-mock
COMMANDS += downloader
COMMANDS += erigon-cl
COMMANDS += hack
COMMANDS += integration
COMMANDS += observer
Expand All @@ -121,7 +120,7 @@ COMMANDS += txpool
COMMANDS += verkle
COMMANDS += evm
COMMANDS += sentinel
COMMANDS += erigon-el
COMMANDS += erigon-el
COMMANDS += caplin-phase1

# build each command using %.cmd rule
Expand Down Expand Up @@ -219,7 +218,7 @@ git-submodules:
@git submodule update --quiet --init --recursive --force || true

PACKAGE_NAME := github.com/testinprod-io/op-erigon
GOLANG_CROSS_VERSION ?= v1.20.2
GOLANG_CROSS_VERSION ?= v1.20.4

.PHONY: release-dry-run
release-dry-run: git-submodules
Expand Down
Loading

0 comments on commit b540214

Please sign in to comment.