@@ -68,15 +68,15 @@ defaults:
6868
6969jobs :
7070 test :
71- name : " Test/${{ matrix.os }} ${{ matrix.arch }}"
71+ name : " Test/${{ matrix.platform }}_ ${{ matrix.arch }}"
7272 runs-on : ${{ matrix.runner }}
7373 strategy :
7474 fail-fast : true
7575 matrix :
7676 include :
77- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
78- - { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
79- - { os: Windows, platform: win, arch: amd64, runner: windows-latest }
77+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
78+ - { platform: macos, arch: arm64, runner: macos-latest }
79+ - { platform: win, arch: amd64, runner: windows-latest }
8080<% if environment % >
8181 environment : <{environment}>
8282<% endif % >
8989 - name : free up disk space
9090 if : runner.os != 'Windows'
9191 run : |
92- # Rust uses a lot of disk space, free up some space
92+ # Preinstalled tools use a lot of disk space, free up some space
9393 # https://github.com/actions/runner-images/issues/2840
9494 sudo rm -rf "$AGENT_TOOLSDIRECTORY"
9595
@@ -187,14 +187,14 @@ jobs:
187187 go test -tags assert -v ./...
188188
189189 validate :
190- name : " Validate/${{ matrix.os }} ${{ matrix.arch }}"
190+ name : " Validate/${{ matrix.platform }}_ ${{ matrix.arch }}"
191191 runs-on : ${{ matrix.runner }}
192192 strategy :
193193 fail-fast : true
194194 matrix :
195195 include :
196196 # I think we only need to test one platform, but we can change that later
197- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
197+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
198198<% if environment % >
199199 environment : <{environment}>
200200<% endif % >
@@ -207,7 +207,7 @@ jobs:
207207 - name : free up disk space
208208 if : runner.os != 'Windows'
209209 run : |
210- # Rust uses a lot of disk space, free up some space
210+ # Preinstalled tools use a lot of disk space, free up some space
211211 # https://github.com/actions/runner-images/issues/2840
212212 sudo rm -rf "$AGENT_TOOLSDIRECTORY"
213213
@@ -246,6 +246,14 @@ jobs:
246246 - name : Build Library
247247 working-directory : go
248248 run : |
249+ if [[ -f ci/scripts/pre-build.sh ]]; then
250+ ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
251+ fi
252+ set -a
253+ if [[ -f .env.release ]]; then
254+ source .env.test
255+ fi
256+ set +a
249257 pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=<{driver}>
250258
251259 - name : Start Test Dependencies
@@ -305,21 +313,21 @@ jobs:
305313 retention-days : 2
306314
307315 build :
308- name : " Build <{driver}>/${{ matrix.os }} ${{ matrix.arch }}"
316+ name : " Build <{driver}>/${{ matrix.platform }}_ ${{ matrix.arch }}"
309317 needs : test
310318 runs-on : ${{ matrix.runner }}
311319 strategy :
312320 fail-fast : true
313321 matrix :
314322 include :
315- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
323+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
316324<% if private % >
317- - { os: Linux, platform: linux, arch: arm64, runner: private-ubuntu-24.04-arm }
325+ - { platform: linux, arch: arm64, runner: private-ubuntu-24.04-arm }
318326<% else % >
319- - { os: Linux, platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
327+ - { platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
320328<% endif % >
321- - { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
322- - { os: Windows, platform: windows, arch: amd64, runner: windows-latest }
329+ - { platform: macos, arch: arm64, runner: macos-latest }
330+ - { platform: windows, arch: amd64, runner: windows-latest }
323331 permissions :
324332 contents : read
325333 packages : read
@@ -353,7 +361,21 @@ jobs:
353361
354362 - name : Build Library
355363 working-directory : go
364+ <% if secrets and "build" in secrets % >
365+ env :
366+ <% for name, val in secrets["build"].items() % >
367+ <{name}> : ${{ secrets.<{val}> }}
368+ <% endfor % >
369+ <% endif % >
356370 run : |
371+ if [[ -f ci/scripts/pre-build.sh ]]; then
372+ ./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
373+ fi
374+ set -a
375+ if [[ -f .env.release ]]; then
376+ source .env.release
377+ fi
378+ set +a
357379 pixi run adbc-make check CI=true VERBOSE=true DRIVER=<{driver}>
358380
359381 - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
0 commit comments