https://github.com/thebeachmaster/cgo-cross
Testing Cross Compilation on a CGO Golang app with Github actions and Goreleaser
https://github.com/thebeachmaster/cgo-cross
Last synced: 8 months ago
JSON representation
Testing Cross Compilation on a CGO Golang app with Github actions and Goreleaser
- Host: GitHub
- URL: https://github.com/thebeachmaster/cgo-cross
- Owner: TheBeachMaster
- License: mit
- Created: 2024-07-29T18:59:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-29T22:44:05.000Z (about 1 year ago)
- Last Synced: 2025-02-15T12:17:33.440Z (8 months ago)
- Language: Makefile
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CGO Cross-Compile
## This is a toy project for learning purposes only!!!
Testing out CGO cross-compilation with Goreleaser,GoSemantic Release, OSX Cross-compile and Github Actions(what a mouthfull!).
## 🧐 Interesting files
- [github/workflows](./.github/workflows/build.yaml)
- [.goreleaser.yaml](./.goreleaser.yaml)## 🚨 Disclaimer
[This does not work.](https://github.com/TheBeachMaster/cgo-cross/actions/runs/10152748329/job/28074768142)
- I should have read [GoReleaser#CGO](https://goreleaser.com/limitations/cgo/) before starting.
```
Compiling with CGO is a bit trickier. It won't work "out of the box" with or without GoReleaser: you have to set more things up.
```- Translation == "It does not work"
## 👀 Future experiments
- Maybe take a look at [xgo](https://github.com/crazy-max/xgo/tree/master)