Skip to content

Build by matrix

Build by matrix #390

Workflow file for this run

name: Build by matrix
on:
pull_request:
workflow_dispatch:
schedule:
- cron: |
0 0 * * *
push:
tags:
- v*
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Go build
run: go build ./cmd/git-semv