From af5f331dea8de1716ab5f4c837012247dcacfc20 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Mon, 29 Mar 2021 07:26:44 +0000 Subject: [PATCH] chore: better build with many OS --- .github/workflows/go.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 0fa6318..7627695 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -12,9 +12,12 @@ jobs: with: go-version: "~1.16" - run: go test -race ./... - build-gotip: + build: name: Build - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2