Skip to content

Build current and next Go version #770

Build current and next Go version

Build current and next Go version #770

Workflow file for this run

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