Skip to content

Build Go from source

Actions
Build and test Go from source code
v0.6.0
Latest
Star (0)

Build and test Go from source

Go must be available to build the language from source. The toolchain for testing is go1.22.

Besides the install documentation, more details on wiki.

Patch files found in directory are applied on tip. Expected file format is from command like git format-patch master

GOROOT_BOOTSTRAP is set to go env GOROOT when not set by go_variables.

Usage with bash:


    - name: Build Go from source
      uses: iwdgo/[email protected]
      id: gotip
      with:
        go_variables: CGO_ENABLED=0
        test_build: true

On Windows, using powershell is identical except for the version tag which is the branch name master-windows.


    - name: Build Go from source on Windows
      uses: iwdgo/gotip-build@master-windows
      id: gotip
      with:
        go_variables: $CGO_ENABLED = 0
        test_build: false

Build Go from source is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Build and test Go from source code
v0.6.0
Latest

Build Go from source is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.