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

ci(release): release for linux and darwin (arm64 and amd64) #1144

Merged
merged 6 commits into from
Feb 6, 2023

Conversation

helder-moreira
Copy link
Contributor

@helder-moreira helder-moreira commented Jan 12, 2023

Description

What does this PR do?

This PR updates goreleaser config to cross-compile nibid for:

  • linux-amd64
  • linux-arm64
  • darwin-amd64
  • darwin-arm64
  • darwin-all (universal binary)

To accomplish it, changes to wasmvm repo are required in order to build static lib for macOS. These changes are applied on our own fork here.Meanwhile I opened a PR on wasmvm repo with these changes, and if they are accepted we can hopefully switch back to their repo on next version (v1.2.0).

Purpose

Why is this PR important?

Any Cosmos blockchain that uses wasmvm ended up not building for macOS anymore because only a dynamic lib is provided. Although it is unlikely that validators want to validate on macOS, users should still be able to get nibid binary to connect to the blockchain and perform queries and transactions.

@helder-moreira helder-moreira self-assigned this Jan 12, 2023
@helder-moreira helder-moreira force-pushed the ci/release-all-archs branch 4 times, most recently from 278c681 to 43b7650 Compare January 19, 2023 14:44
@helder-moreira helder-moreira marked this pull request as ready for review January 19, 2023 16:04
@helder-moreira helder-moreira requested a review from a team as a code owner January 19, 2023 16:04
- -mod=readonly
ldflags:
- -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=nibiru -X github.com/cosmos/cosmos-sdk/version.AppName=nibid -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }} -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} -X github.com/tendermint/tendermint/version.TMCoreSemVer={{ .Env.TM_VERSION }}
- -linkmode=external
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the -extldflags '-Wl,-z,muldefs -static -lm'?

@k-yang k-yang self-requested a review February 6, 2023 01:24
@k-yang k-yang added the dependencies Pull requests that update a dependency file label Feb 6, 2023
@k-yang k-yang enabled auto-merge (squash) February 6, 2023 01:25
@k-yang k-yang merged commit cf3cc9e into master Feb 6, 2023
@k-yang k-yang deleted the ci/release-all-archs branch February 6, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants