/setup-go

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

MIT LicenseMIT

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.