Skip to content

Set up your GitHub Actions workflow with a specific version of Go

Notifications You must be signed in to change notification settings

hermanbanken/setup-go

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

4 Commits
 
 
 
 

Repository files navigation

setup-go

See setup-go and specifically the remark to not allow separate binaries to be build using setup-go (too complex) in actions#324, and the fix in actions#325.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
  - run: go version
jobs:
  lint:
  steps:
    - uses: actions/checkout@v3
    - uses: hermanbanken/setup-go@v3
      with:
        key: 'job:lint:go'
    - run: go version

  buildA:
    steps:
      - uses: actions/checkout@v3
      - uses: hermanbanken/setup-go@v3
        with:
          key: 'toolA'
      - run: go build ./cmd/a

buildB:
  steps:
    - uses: actions/checkout@v3
    - uses: hermanbanken/setup-go@v3
      with:
        key: 'toolB'
    - run: go build ./cmd/b

License

The scripts and documentation in this project are released under the MIT License

Contributions

Please make changes to setup-go first, and only make contributions to this repo to update setup-go.

About

Set up your GitHub Actions workflow with a specific version of Go

Resources

Stars

Watchers

Forks

Packages

No packages published