Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ jobs:
pre-commit run --all-files --color=always --show-diff-on-failure --verbose

- name: Analyze workflows with zizmor
uses: zizmorcore/zizmor-action@6fc4b006235f201fdab3722e17240ab420d580e5 # v0.6.1
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
with:
advanced-security: false
35 changes: 20 additions & 15 deletions .github/workflows/go_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -154,9 +154,6 @@ jobs:

go test -tags assert -v ./...

if [[ -f ci/scripts/post-test.sh ]]; then
./ci/scripts/post-test.sh
fi

- name: go mod tidy
if: runner.os == 'Linux'
Expand Down Expand Up @@ -201,7 +198,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -235,7 +232,7 @@ jobs:
source .env.test
fi
set +a
pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=bigquery IMPL_LANG=go
pixi run adbc-make build DEBUG=true VERBOSE=true
- name: Start Test Dependencies
# Can't use Docker on macOS AArch64 runners, and Windows containers
# work but often the container doesn't support Windows
Expand Down Expand Up @@ -290,12 +287,9 @@ jobs:
pixi run validate
fi

if [[ -f ci/scripts/post-test.sh ]]; then
./ci/scripts/post-test.sh
fi

cp validation-report.xml validation-report-${{ matrix.vendor_version }}.xml


- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: validation-report-${{ matrix.vendor_version }}
Expand Down Expand Up @@ -343,7 +337,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand All @@ -360,6 +354,17 @@ jobs:
run: |
echo "$GHCR_TOKEN" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin

- name: Add dumpbin to PATH
if: runner.os == 'Windows'
shell: pwsh
run: |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
$dumpbin = & $vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -find 'VC\Tools\MSVC\**\bin\Hostx64\x64\dumpbin.exe' | Select-Object -First 1
if (-not $dumpbin) {
throw "Could not find dumpbin.exe using vswhere"
}
Split-Path $dumpbin -Parent | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Build Library
working-directory: go
run: |
Expand All @@ -375,7 +380,7 @@ jobs:
source .env.release
fi
set +a
pixi run adbc-make check CI=true VERBOSE=true DRIVER=bigquery IMPL_LANG=go RELEASE=true
pixi run adbc-make check CI=true VERBOSE=true RELEASE=true
if [[ -f ci/scripts/post-build.sh ]]; then
./ci/scripts/post-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
fi
Expand Down Expand Up @@ -408,7 +413,7 @@ jobs:
check-latest: true
go-version: "stable"

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -486,7 +491,7 @@ jobs:
with:
cache: false
go-version: 'stable'
- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -547,7 +552,7 @@ jobs:
persist-credentials: false
submodules: 'recursive'

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down
35 changes: 20 additions & 15 deletions .github/workflows/go_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -194,9 +194,6 @@ jobs:

go test -tags assert -v ./...

if [[ -f ci/scripts/post-test.sh ]]; then
./ci/scripts/post-test.sh
fi

- name: go mod tidy
if: runner.os == 'Linux'
Expand Down Expand Up @@ -252,7 +249,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -286,7 +283,7 @@ jobs:
source .env.test
fi
set +a
pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=bigquery IMPL_LANG=go
pixi run adbc-make build DEBUG=true VERBOSE=true
- name: Start Test Dependencies
# Can't use Docker on macOS AArch64 runners, and Windows containers
# work but often the container doesn't support Windows
Expand Down Expand Up @@ -341,12 +338,9 @@ jobs:
pixi run validate
fi

if [[ -f ci/scripts/post-test.sh ]]; then
./ci/scripts/post-test.sh
fi

cp validation-report.xml validation-report-${{ matrix.vendor_version }}.xml


- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: validation-report-${{ matrix.vendor_version }}
Expand Down Expand Up @@ -405,7 +399,7 @@ jobs:
check-latest: true
go-version-file: go/go.mod

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand All @@ -422,6 +416,17 @@ jobs:
run: |
echo "$GHCR_TOKEN" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin

- name: Add dumpbin to PATH
if: runner.os == 'Windows'
shell: pwsh
run: |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
$dumpbin = & $vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -find 'VC\Tools\MSVC\**\bin\Hostx64\x64\dumpbin.exe' | Select-Object -First 1
if (-not $dumpbin) {
throw "Could not find dumpbin.exe using vswhere"
}
Split-Path $dumpbin -Parent | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Build Library
working-directory: go
run: |
Expand All @@ -437,7 +442,7 @@ jobs:
source .env.release
fi
set +a
pixi run adbc-make check CI=true VERBOSE=true DRIVER=bigquery IMPL_LANG=go
pixi run adbc-make check CI=true VERBOSE=true
if [[ -f ci/scripts/post-build.sh ]]; then
./ci/scripts/post-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
fi
Expand Down Expand Up @@ -481,7 +486,7 @@ jobs:
check-latest: true
go-version: "stable"

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -559,7 +564,7 @@ jobs:
with:
cache: true
go-version: 'stable'
- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down Expand Up @@ -641,7 +646,7 @@ jobs:
persist-credentials: false
submodules: 'recursive'

- uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
- uses: prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
with:
pixi-version: v0.72.0
run-install: false
Expand Down
18 changes: 18 additions & 0 deletions go/adbc-make.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2026 ADBC Drivers Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

driver = "bigquery"

[lang]
lang = "go"
11 changes: 6 additions & 5 deletions go/pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ platforms = ["linux-64", "osx-arm64", "win-64", "linux-aarch64"]
version = "0.1.0"

[tasks]
make = "adbc-make run build DRIVER=bigquery VERBOSE=true"
make = "adbc-make run build VERBOSE=true"
test = "go test -tags assert -v ./..."
release = "adbc-release"
validate = "pytest -vvs --junit-xml=validation-report.xml -rfEsxX validation/tests/"
Expand Down
Loading