diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index aa10ee9ec1..71d80a1830 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -57,6 +57,11 @@ jobs: GIT_COMMIT_DATE=$(git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d') GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=$(pwd)/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc go build -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.gitDate=$GIT_COMMIT_DATE -extldflags=-static" -o ./build/bin/geth -a ./cmd/geth + - name: Temporary replace BLS for Windows + if: matrix.os == 'windows-latest' + shell: cmd + run: go mod edit -replace=github.com/herumi/bls-eth-go-binary=github.com/herumi/bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e && go mod tidy + - name: Build Binary for ${{matrix.os}} if: matrix.os != 'ubuntu-latest' run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29b5f836c6..1b20a3fb81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,12 @@ jobs: GIT_COMMIT_DATE=$(git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d') GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=$(pwd)/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc go build -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.gitDate=$GIT_COMMIT_DATE -extldflags=-static" -o ./build/bin/geth -a ./cmd/geth + # ============================== + - name: Temporary replace BLS for Windows + if: matrix.os == 'windows-latest' + shell: cmd + run: go mod edit -replace=github.com/herumi/bls-eth-go-binary=github.com/herumi/bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e && go mod tidy + - name: Build Binary for ${{matrix.os}} if: matrix.os != 'ubuntu-latest' run: |