Skip to content

Commit

Permalink
enabled matrix build for linux, win, dwarwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Reusch authored and Daniel Reusch committed Mar 12, 2024
1 parent ff2fffb commit 3f113b1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
jobs:

build:
strategy:
matrix:
os: [ 'windows', 'linux', 'darwin' ]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,8 +25,8 @@ jobs:
with:
go-version: '1.22'

- name: Build
run: go build -v ./...
- name: Build ${{ matrix.os}}
run: GOOS=${{ matrix.os}} go build -v ./...

- name: Test
run: go test -v ./...
- name: Test ${{ matrix.os}}
run: GOOS=${{ matrix.os}} go test -v ./...

0 comments on commit 3f113b1

Please sign in to comment.