Skip to content

Commit 5ded7d9

Browse files
committed
Split out build and test
1 parent 76bd585 commit 5ded7d9

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ on:
55
- main
66
pull_request:
77
jobs:
8-
test:
8+
build:
99
strategy:
1010
matrix:
11-
# Disabling windows builds while we fix installing PostgreSQL 16
12-
# os: [ubuntu-24.04, macos-14, windows-2022]
13-
os: [ubuntu-24.04]
14-
# Workaround no native support for conditional matrix items
15-
# https://github.com/orgs/community/discussions/26253#discussioncomment-6745038
16-
# isMain:
17-
# - ${{ github.ref == 'refs/heads/main' }}
18-
# exclude:
19-
# - isMain: false
20-
# include:
21-
# - os: ubuntu-24.04
22-
name: test ${{ matrix.os }}
23-
runs-on: ${{ matrix.os }}
24-
11+
goos: [darwin, linux, windows]
12+
goarch: [amd64, arm64]
13+
name: build ${{ matrix.goos }}/${{ matrix.goarch }}
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.25.0'
20+
- run: go build ./...
21+
env:
22+
CGO_ENABLED: "0"
23+
GOOS: ${{ matrix.goos }}
24+
GOARCH: ${{ matrix.goarch }}
25+
test:
26+
runs-on: ubuntu-24.04
2527
steps:
2628
- uses: actions/checkout@v5
2729
- uses: actions/setup-go@v5

0 commit comments

Comments
 (0)