Build `x86` on Windows with the built-in tools
- Lenguaje dominante
- Go
- Estrellas
- 657
- Forks
- 154
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
We build `amd64` directly: https://github.com/github/smimesign/blob/e650daf6eaadf85c763fa06dcfb0e4d794d293dc/.github/workflows/build-binaries.yml#L89
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:
https://github.com/github/smimesign/blob/e650daf6eaadf85c763fa06dcfb0e4d794d293dc/.github/workflows/build-binaries.yml#L90-L94
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.
Guía de contribución
Línea de trabajo
Comienza con .github/workflows/build-binaries.yml alrededor de las líneas 89-94, comparando la compilación amd64 con la ruta GOARCH=386 y el paso setup-mingw. Ejecuta el flujo de trabajo de Windows Actions mientras pruebas el enfoque de herramientas integradas; se considera terminado cuando los binarios x86 se compilan correctamente sin setup-mingw y el flujo de trabajo sigue funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github-actions, go
- Área
- build-system, ci-cd
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100