Skip to content

kevincobain2000/action-gobrew

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

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

gobrew

Action for gobrew. Setup Go for Github Actions.

Quick Setup: One command to install Go and manage versions.

Hassle Free: Doesn't require root or sudo, or shell re-hash.

Platform: Supports (arm64, arch64, Mac, Mac M1, and Ubuntu).

Flexible: Manage multiple Go versions including beta and rc.

Yaml

  # use latest stable version
  - uses: kevincobain2000/action-gobrew@v2.2
  # with specific version
  - uses: kevincobain2000/action-gobrew@v2.2
    with:
      version: 1.16
# On Matrix
on: [push]
name: CI
jobs:
  test:
    strategy:
      matrix:
        go-version: [1.13, 1.14, 1.15, 1.16.7, 1.17, 1.18, 1.18@latest, 1.19beta1, 1.19@dev-latest, latest, dev-latest]
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - uses: kevincobain2000/action-gobrew@v2.2
        with:
          version: ${{ matrix.go-version }}

      - name: Go
        run: go version

About go-version

1.16               - will install 1.13
1.16.1             - will install 1.13
1.16beta1          - will install 1.16beta1
1.16rc1            - will install 1.16rc1
1.16@latest        - will install 1.16.15, which is the latest stable on 1.16
1.16@dev-latest    - will install 1.16.15, which is the latest stable on 1.16

latest             - will install latest stable version
dev-latest         - will install latest version, include rc|beta