Skip to content

iwdgo/gotip-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/gotip-build@v0.6.0
      id: gotip
      with:
        go_variables: GOROOT_FINAL=/ 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: $GOROOT_FINAL = "/"; $CGO_ENABLED = 0
        test_build: false