Skip to content

Commit 7f1a517

Browse files
authored
ci: Run go build on Windows and macOS (#2102)
* ci: Run go build on Windows and macOS * Fix build on Windows * Only run macOS and Windows build on main
1 parent fc6ed52 commit 7f1a517

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/ci.yml

+19
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ on:
55
- main
66
pull_request:
77
jobs:
8+
windows-build:
9+
if: ${{ github.ref == 'refs/heads/main' }}
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-go@v3
14+
with:
15+
go-version: '1.19'
16+
- run: go build ./...
17+
18+
darwin-build:
19+
if: ${{ github.ref == 'refs/heads/main' }}
20+
runs-on: macos-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version: '1.19'
26+
- run: go build ./...
827

928
build:
1029
name: test

internal/engine/postgresql/parse_disabled.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package postgresql
66
import (
77
"errors"
88
"io"
9+
"runtime"
910

1011
"github.com/kyleconroy/sqlc/internal/metadata"
1112
"github.com/kyleconroy/sqlc/internal/sql/ast"

0 commit comments

Comments
 (0)