{"id":13530375,"url":"https://github.com/crazy-max/ghaction-xgo","last_synced_at":"2025-04-05T14:06:17.234Z","repository":{"id":35215599,"uuid":"208661145","full_name":"crazy-max/ghaction-xgo","owner":"crazy-max","description":"GitHub Action for xgo, a Golang CGO cross compiler","archived":false,"fork":false,"pushed_at":"2024-10-28T01:13:21.000Z","size":4680,"stargazers_count":66,"open_issues_count":4,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T15:41:10.839Z","etag":null,"topics":["actions","cgo","cross-compiler","github-actions","golang","xgo"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/golang-cgo-cross-compiler","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazy-max.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"crazy-max","custom":"https://www.paypal.me/crazyws"}},"created_at":"2019-09-15T21:42:18.000Z","updated_at":"2024-10-28T01:11:02.000Z","dependencies_parsed_at":"2024-01-26T01:27:11.150Z","dependency_job_id":"2f547980-3881-4deb-9247-c951e6f74e4c","html_url":"https://github.com/crazy-max/ghaction-xgo","commit_stats":{"total_commits":433,"total_committers":5,"mean_commits":86.6,"dds":0.5242494226327945,"last_synced_commit":"e22d3c8b089adba750d5a74738b8e95d96f0c991"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-xgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-xgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-xgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fghaction-xgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-max","download_url":"https://codeload.github.com/crazy-max/ghaction-xgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345852,"owners_count":20924102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cgo","cross-compiler","github-actions","golang","xgo"],"created_at":"2024-08-01T07:00:48.919Z","updated_at":"2025-04-05T14:06:17.195Z","avatar_url":"https://github.com/crazy-max.png","language":"TypeScript","funding_links":["https://github.com/sponsors/crazy-max","https://www.paypal.me/crazyws"],"categories":["Community Resources"],"sub_categories":["Utility"],"readme":"[![GitHub release](https://img.shields.io/github/release/crazy-max/ghaction-xgo.svg?style=flat-square)](https://github.com/crazy-max/ghaction-xgo/releases/latest)\n[![GitHub marketplace](https://img.shields.io/badge/marketplace-golang--cgo--cross--compiler-blue?logo=github\u0026style=flat-square)](https://github.com/marketplace/actions/golang-cgo-cross-compiler)\n[![Test workflow](https://img.shields.io/github/actions/workflow/status/crazy-max/ghaction-xgo/test.yml?branch=master\u0026label=test\u0026logo=github\u0026style=flat-square)](https://github.com/crazy-max/ghaction-xgo/actions?workflow=test)\n[![Codecov](https://img.shields.io/codecov/c/github/crazy-max/ghaction-xgo?logo=codecov\u0026style=flat-square)](https://codecov.io/gh/crazy-max/ghaction-xgo)\n[![Become a sponsor](https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github\u0026style=flat-square)](https://github.com/sponsors/crazy-max)\n[![Paypal Donate](https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square)](https://www.paypal.me/crazyws)\n\n## About\n\nA GitHub Action for [xgo](https://github.com/crazy-max/xgo), a Golang CGO\ncross-compiler.\n\n___\n\n* [Usage](#usage)\n* [Customizing](#customizing)\n  * [inputs](#inputs)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Usage\n\n```yaml\nname: build\n\non:\n  push:\n  pull_request:\n\njobs:\n  xgo:\n    runs-on: ubuntu-latest\n    steps:\n      -\n        name: Checkout\n        uses: actions/checkout@v4\n      -\n        name: Build\n        uses: crazy-max/ghaction-xgo@v3\n        with:\n          xgo_version: latest\n          go_version: 1.21\n          dest: build\n          prefix: myapp\n          targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64\n          v: true\n          x: false\n          race: false\n          ldflags: -s -w\n          buildmode: default\n          trimpath: true\n```\n\n## Customizing\n\n### inputs\n\nThe following inputs can be used as `step.with` keys\n\n| Name          | Type    | Default             | Description                                                                                                                  |\n|---------------|---------|---------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `xgo_version` | String  | `latest`            | xgo version (e.g., `v0.24.0`)                                                                                                |\n| `go_version`  | String  | `latest`            | Go release to use for cross compilation from those [docker tags](https://hub.docker.com/r/crazymax/xgo/tags/) (e.g., `1.19`) |\n| `dest`        | String  | `build`             | Destination folder to put binaries in                                                                                        |\n| `pkg`         | String  |                     | Sub-package to build if not root import                                                                                      |\n| `prefix`      | String  | _package name_      | Prefix to use for output naming                                                                                              |\n| `targets`     | String  | `*/*`               | Comma separated targets to build for (e.g. `windows/amd64,linux/386`)                                                        |\n| `v`           | Bool    | `false`             | Prints the names of packages as they are compiled                                                                            |\n| `x`           | Bool    | `false`             | Prints the build commands as compilation progresses                                                                          |\n| `race`        | Bool    | `false`             | Enable data race detection                                                                                                   |\n| `tags`        | String  |                     | Comma separated list of build tags to consider satisfied during the build                                                    |\n| `ldflags`     | String  |                     | Arguments to pass on each go tool link invocation                                                                            |\n| `buildmode`   | String  | `default`           | Indicates which kind of object file to build                                                                                 |\n| `buildvcs`    | String  |                     | Whether to stamp binaries with version control information                                                                   |\n| `trimpath`    | Bool    | `false`             | Remove all file system paths from the resulting executable                                                                   |\n| `working_dir` | String  | `$GITHUB_WORKSPACE` | Working directory                                                                                                            |\n\n## Limitation\n\nThis action is only available for Linux [virtual environments](https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments-and-hardware-resources).\n\n## Contributing\n\nWant to contribute? Awesome! The most basic way to show your support is to star\nthe project, or to raise issues. You can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max)\nor by making a [PayPal donation](https://www.paypal.me/crazyws) to ensure this\njourney continues indefinitely!\n\nThanks again for your support, it is much appreciated! :pray:\n\n## License\n\nMIT. See `LICENSE` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fghaction-xgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-max%2Fghaction-xgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fghaction-xgo/lists"}