Build current and next Go version #770
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: | |
- 1.20 # current | |
- 1.21 # next | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
id: setup-go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Build | |
run: script/cibuild | |
# only upload binary artifact for current version | |
- name: Upload gh-ost binary artifact | |
uses: actions/upload-artifact@v3 | |
if: ${{ startsWith(steps.setup-go.outputs.go-version, '1.20') }} | |
with: | |
name: gh-ost | |
path: bin/gh-ost |