Skip to content

Commit 153be0d

Browse files
committed
Only run tests on Linux
1 parent 2c69f10 commit 153be0d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
strategy:
1010
matrix:
1111
# Disabling windows builds while we fix installing PostgreSQL 16
12-
os: [ubuntu-24.04, macos-14, windows-2022]
13-
cgo: ['1', '0']
12+
# os: [ubuntu-24.04, macos-14, windows-2022]
13+
os: [ubuntu-24.04]
1414
# Workaround no native support for conditional matrix items
1515
# https://github.com/orgs/community/discussions/26253#discussioncomment-6745038
1616
# isMain:
@@ -19,10 +19,7 @@ jobs:
1919
# - isMain: false
2020
# include:
2121
# - os: ubuntu-24.04
22-
# cgo: '1'
23-
# - os: ubuntu-24.04
24-
# cgo: '0'
25-
name: test ${{ matrix.os }} cgo=${{ matrix.cgo }}
22+
name: test ${{ matrix.os }}
2623
runs-on: ${{ matrix.os }}
2724

2825
steps:
@@ -43,13 +40,13 @@ jobs:
4340
- name: install ./...
4441
run: go install ./...
4542
env:
46-
CGO_ENABLED: ${{ matrix.cgo }}
43+
CGO_ENABLED: "0"
4744

4845
- name: build internal/endtoend
4946
run: go build ./...
5047
working-directory: internal/endtoend/testdata
5148
env:
52-
CGO_ENABLED: ${{ matrix.cgo }}
49+
CGO_ENABLED: "0"
5350

5451
- name: test ./...
5552
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
@@ -58,7 +55,7 @@ jobs:
5855
CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
5956
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
6057
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
61-
CGO_ENABLED: ${{ matrix.cgo }}
58+
CGO_ENABLED: "0"
6259

6360
vuln_check:
6461
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)