@@ -49,22 +49,22 @@ defaults:
4949
5050jobs :
5151 test :
52- name : " Test/${{ matrix.os }} ${{ matrix.arch }}"
52+ name : " Test/${{ matrix.platform }}_ ${{ matrix.arch }}"
5353 runs-on : ${{ matrix.runner }}
5454 strategy :
5555 fail-fast : true
5656 matrix :
5757 include :
58- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
59- - { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
60- - { os: Windows, platform: win, arch: amd64, runner: windows-latest }
58+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
59+ - { platform: macos, arch: arm64, runner: macos-latest }
60+ - { platform: win, arch: amd64, runner: windows-latest }
6161 permissions :
6262 contents : read
6363 steps :
6464 - name : free up disk space
6565 if : runner.os != 'Windows'
6666 run : |
67- # Rust uses a lot of disk space, free up some space
67+ # Preinstalled tools use a lot of disk space, free up some space
6868 # https://github.com/actions/runner-images/issues/2840
6969 sudo rm -rf "$AGENT_TOOLSDIRECTORY"
7070
@@ -147,21 +147,21 @@ jobs:
147147 go test -tags assert -v ./...
148148
149149 validate :
150- name : " Validate/${{ matrix.os }} ${{ matrix.arch }}"
150+ name : " Validate/${{ matrix.platform }}_ ${{ matrix.arch }}"
151151 runs-on : ${{ matrix.runner }}
152152 strategy :
153153 fail-fast : true
154154 matrix :
155155 include :
156156 # I think we only need to test one platform, but we can change that later
157- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
157+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
158158 permissions :
159159 contents : read
160160 steps :
161161 - name : free up disk space
162162 if : runner.os != 'Windows'
163163 run : |
164- # Rust uses a lot of disk space, free up some space
164+ # Preinstalled tools use a lot of disk space, free up some space
165165 # https://github.com/actions/runner-images/issues/2840
166166 sudo rm -rf "$AGENT_TOOLSDIRECTORY"
167167
@@ -185,6 +185,14 @@ jobs:
185185 - name : Build Library
186186 working-directory : go
187187 run : |
188+ if [[ -f ci/scripts/pre-build.sh ]]; then
189+ ./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
190+ fi
191+ set -a
192+ if [[ -f .env.release ]]; then
193+ source .env.test
194+ fi
195+ set +a
188196 pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=databricks
189197
190198 - name : Start Test Dependencies
@@ -244,17 +252,17 @@ jobs:
244252 retention-days : 2
245253
246254 build :
247- name : " Build databricks/${{ matrix.os }} ${{ matrix.arch }}"
255+ name : " Build databricks/${{ matrix.platform }}_ ${{ matrix.arch }}"
248256 needs : test
249257 runs-on : ${{ matrix.runner }}
250258 strategy :
251259 fail-fast : true
252260 matrix :
253261 include :
254- - { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
255- - { os: Linux, platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
256- - { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
257- - { os: Windows, platform: windows, arch: amd64, runner: windows-latest }
262+ - { platform: linux, arch: amd64, runner: ubuntu-latest }
263+ - { platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
264+ - { platform: macos, arch: arm64, runner: macos-latest }
265+ - { platform: windows, arch: amd64, runner: windows-latest }
258266 permissions :
259267 contents : read
260268 packages : read
@@ -289,6 +297,14 @@ jobs:
289297 - name : Build Library
290298 working-directory : go
291299 run : |
300+ if [[ -f ci/scripts/pre-build.sh ]]; then
301+ ./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
302+ fi
303+ set -a
304+ if [[ -f .env.release ]]; then
305+ source .env.release
306+ fi
307+ set +a
292308 pixi run adbc-make check CI=true VERBOSE=true DRIVER=databricks
293309
294310 - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
0 commit comments