Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of windows build stages. #12117

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,6 @@ jobs:
compression-level: 0
if-no-files-found: error

- name: Upload artifact -- windows/amd64
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a ## v4.3.6
with:
name: ${{ env.APPLICATION }}_${{ inputs.release_version }}_windows_amd64.zip
path: ./dist/${{ env.APPLICATION }}_${{ inputs.release_version }}_windows_amd64.zip
retention-days: 1
compression-level: 0
if-no-files-found: error

## not required for now -- commented:
# - name: Create and push a git tag for the released version in case perform_release is set
# if: ${{ inputs.perform_release }}
Expand All @@ -204,7 +195,7 @@ jobs:
# git tag -a ${{ inputs.release_version }} -m "Release ${{ inputs.release_version }}"
# git push origin ${{ inputs.release_version }}

- name: Publish draft of the Release notes with assets (without windows .zip) in case perform_release is set
- name: Publish draft of the Release notes with assets in case perform_release is set
if: ${{ inputs.perform_release }}
env:
GH_TOKEN: ${{ github.token }}
Expand Down
240 changes: 0 additions & 240 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -800,230 +800,6 @@ builds:
## End of Linux ARM64


## Windows AMD64:
- id: windows-amd64-erigon
main: ./cmd/erigon
binary: erigon
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -v
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-downloader
main: ./cmd/downloader
binary: downloader
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-devnet
main: ./cmd/devnet
binary: devnet
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-evm
main: ./cmd/evm
binary: evm
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-caplin
main: ./cmd/caplin
binary: caplin
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-diag
main: ./cmd/diag
binary: diag
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-integration
main: ./cmd/integration
binary: integration
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-rpcdaemon
main: ./cmd/rpcdaemon
binary: rpcdaemon
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-sentry
main: ./cmd/sentry
binary: sentry
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-txpool
main: ./cmd/txpool
binary: txpool
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_WINDOWS }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
- CMAKE_MDBX_BUILD_SHARED_LIBRARY:BOOL=OFF
- CMAKE_MDBX_WITHOUT_MSVC_CRT:BOOOL=OFF
- CMAKE_MDBX_BUILD_TIMESTAMP=unknown
- CMAKE_MDBX_FORCE_ASSERTIONS:INT=0
tags: [ nosqlite, noboltdb, nosilkworm ]
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -extldflags "-static"
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}
## Windows AMD64


archives:
- id: linux-arm64
builds:
Expand Down Expand Up @@ -1088,19 +864,3 @@ archives:
name_template: "{{ .Env.APPLICATION }}_{{ .Env.BUILD_VERSION }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
format: tar.gz

- id: windows-amd64
builds:
- windows-amd64-erigon
- windows-amd64-downloader
- windows-amd64-devnet
- windows-amd64-evm
- windows-amd64-caplin
- windows-amd64-diag
- windows-amd64-integration
- windows-amd64-rpcdaemon
- windows-amd64-sentry
- windows-amd64-txpool
name_template: "{{ .Env.APPLICATION }}_{{ .Env.BUILD_VERSION }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
format: zip
Loading