zijiren233/Go Cross Action

A configurable GitHub Action to build Go projects with cross-compilation support

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandCommand to execute (build, run, test, bench)nobuild
source-dirThe directory containing the Go project to buildno${{ github.workspace }}
result-dirThe directory to store build resultsno
build-configThe path to the build configuration fileno
buildmodeBuild mode (default, archive, shared, c-archive, c-shared)no
bin-nameName of the output binaryno
bin-name-no-suffixDo not append architecture suffix to binary nameno
add-go-build-argsAdditional Go command argumentsno
targetsTarget targets to build for (e.g. linux/amd64,windows/386)no
cgo-enabledEnable CGOno0
force-cgoForce use of CGOno
ccForce set the specific C compilerno
cxxForce set the specific C++ compilerno
use-default-cc-cxxUse the default C and C++ compilersno
cgo-flagsCGO compiler flagsno
cgo-ldflagsCGO linker flagsno
ldflagsGo linker flagsno
ext-ldflagsExternal linker flagsno
tagsBuild tagsno
github-proxy-mirrorGitHub proxy mirror URL for downloading cross compilersno
cross-compiler-dirDirectory to store cross compilersno
ndk-versionAndroid NDK version for Android buildsno
go-clean-cacheClean Go build cache before buildingno
enable-microEnable building micro architecture variantsno
show-all-targetsShow all supported targetsnofalse
raceenable data race detection. Supported only on linux/amd64, freebsd/amd64, darwin/amd64, darwin/arm64, windows/amd64, linux/ppc64le and linux/arm64 (only for 48-bit VMA).no
aforce rebuilding of packages that are already up-to-date.no
nprint the commands but do not run them.no
xprint the commands.no
vprint the names of packages as they are compiled.no
workprint the name of the temporary work directory and do not delete it when exiting.no
pthe number of programs that can be run in parallel.no
msanenable interoperation with memory sanitizer.no
asanenable interoperation with address sanitizer.no
coverenable code coverage instrumentation.no
covermodeset the mode for coverage analysis (set, count, atomic).no
coverpkgapply coverage analysis to packages matching pattern.no
asmflagsarguments to pass on each go tool asm invocation.no
buildvcswhether to stamp binaries with version control information.no
compilername of compiler to use (gccgo or gc).no
gccgoflagsarguments to pass on each gccgo compiler/linker invocation.no
gcflagsarguments to pass on each go tool compile invocation.no
installsuffixa suffix to use in the name of the package installation directory.no
jsonemit build output in JSON format.no
linksharedbuild code that will be linked against shared libraries.no
modmodule download mode (readonly, vendor, or mod).no
modcacherwleave newly-created directories in the module cache read-write.no
modfileread an alternate go.mod file.no
overlayread a JSON config file that provides an overlay for build operations.no
pgospecify the file path of a profile for profile-guided optimization.no
pkgdirinstall and load all packages from dir.no
trimpathremove all file system paths from the resulting executable.no
toolexeca program to use to invoke toolchain programs.no
change-dirchange to dir before running the command.no
use-gnu-libcuse GNU libc instead of musl for Linux targets.no
apple-simulatorbuild for Apple simulator (iOS/tvOS/watchOS).no
apiAndroid API level for Android builds (default: 24).no
cgo-deps-versionCGO dependencies version.no
packagepackage path to build (default: current directory).no
config-argsAdditional build configuration argumentsno
namedescription
targetsAll supported targets