Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.01 KB

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