This action sets up an XGo environment for use in actions by:
- Optionally downloading and caching a version of XGo by version and adding to
PATH. - Registering problem matchers for error output.
- Supports
xgo-versionandgo-version - Supports SemVer.
This action installs Go, and then installs XGo using git.
Version matching by SemVer spec:
steps:
- uses: actions/checkout@v4
- uses: goplus/setup-xgo@v1
with:
go-version: '1.24.0'
xgo-version: '1.5.0' # The XGo version to download (if necessary) and use.
- run: xgo version