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

Build x86 on Windows with the built-in tools #91

Open
lgarron opened this issue Oct 4, 2021 · 0 comments
Open

Build x86 on Windows with the built-in tools #91

lgarron opened this issue Oct 4, 2021 · 0 comments

Comments

@lgarron
Copy link
Contributor

lgarron commented Oct 4, 2021

We build amd64 directly:

GOARCH=amd64 go build -o "build/amd64/smimesign.exe" -ldflags "-X main.versionString=${{ env.GIT_VERSION }}"

But I had trouble figuring out how to build for GOARCH=386 without errors. Right now, we use https://github.com/egor-tensin/setup-mingw to switch to 32-bit builds, which pulls down a bunch of tooling and takes a few minutes:

- name: Switch MinGW to x86
# Pinned hash from https://github.com/egor-tensin/setup-mingw/releases/tag/v2
uses: egor-tensin/setup-mingw@f3c5d799aadf8fa230ac67a422b01dd085bbc96b
with:
platform: x86

I can't help but feel there must still be a nice (or at least much faster) way to do this using the built-in tools from Actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant