Skip to content

Commit 5b25b5f

Browse files
authored
ci: bump workflows (#73)
1 parent cfa4c55 commit 5b25b5f

11 files changed

Lines changed: 90 additions & 40 deletions

File tree

.github/workflows/dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 ADBC Drivers Contributors
1+
# Copyright (c) 2025-2026 ADBC Drivers Contributors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ jobs:
5959
run: pip install pre-commit
6060

6161
- name: pre-commit (cache)
62-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
62+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
6363
with:
6464
path: ~/.cache/pre-commit
6565
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/dev_issues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 ADBC Drivers Contributors
1+
# Copyright (c) 2025-2026 ADBC Drivers Contributors
22
#
33
# This file has been modified from its original version, which is
44
# under the Apache License:

.github/workflows/dev_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 ADBC Drivers Contributors
1+
# Copyright (c) 2025-2026 ADBC Drivers Contributors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

.github/workflows/go_release.yaml

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 ADBC Drivers Contributors
1+
# Copyright (c) 2025-2026 ADBC Drivers Contributors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -66,14 +66,15 @@ jobs:
6666
with:
6767
fetch-depth: 0
6868
persist-credentials: false
69+
submodules: 'recursive'
6970

7071
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
7172
with:
7273
cache-dependency-path: go/go.sum
7374
check-latest: true
7475
go-version-file: go/go.mod
7576

76-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
77+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
7778
with:
7879
pixi-version: v0.63.2
7980
run-install: false
@@ -87,6 +88,13 @@ jobs:
8788
./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
8889
fi
8990
91+
set -a
92+
if [[ -f .env.build ]]; then
93+
echo "Loading .env.build"
94+
source .env.build
95+
fi
96+
set +a
97+
9098
go build ./...
9199
92100
- name: Start Test Dependencies
@@ -160,14 +168,15 @@ jobs:
160168
with:
161169
fetch-depth: 0
162170
persist-credentials: false
171+
submodules: 'recursive'
163172

164173
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
165174
with:
166175
cache-dependency-path: go/go.sum
167176
check-latest: true
168177
go-version-file: go/go.mod
169178

170-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
179+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
171180
with:
172181
pixi-version: v0.63.2
173182
run-install: false
@@ -185,12 +194,15 @@ jobs:
185194
./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
186195
fi
187196
set -a
188-
if [[ -f .env.release ]]; then
197+
if [[ -f .env.build ]]; then
198+
echo "Loading .env.build"
199+
source .env.build
200+
fi
201+
if [[ -f .env.test ]]; then
189202
source .env.test
190203
fi
191204
set +a
192205
pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=snowflake IMPL_LANG=go
193-
194206
- name: Start Test Dependencies
195207
# Can't use Docker on macOS AArch64 runners, and Windows containers
196208
# work but often the container doesn't support Windows
@@ -277,14 +289,15 @@ jobs:
277289
with:
278290
fetch-depth: 0
279291
persist-credentials: false
292+
submodules: 'recursive'
280293

281294
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
282295
with:
283296
cache-dependency-path: go/go.sum
284297
check-latest: true
285298
go-version-file: go/go.mod
286299

287-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
300+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
288301
with:
289302
pixi-version: v0.63.2
290303
run-install: false
@@ -306,6 +319,10 @@ jobs:
306319
./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
307320
fi
308321
set -a
322+
if [[ -f .env.build ]]; then
323+
echo "Loading .env.build"
324+
source .env.build
325+
fi
309326
if [[ -f .env.release ]]; then
310327
source .env.release
311328
fi
@@ -330,13 +347,14 @@ jobs:
330347
with:
331348
fetch-depth: 0
332349
persist-credentials: false
350+
submodules: 'recursive'
333351

334352
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
335353
with:
336354
check-latest: true
337355
go-version: "stable"
338356

339-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
357+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
340358
with:
341359
pixi-version: v0.63.2
342360
run-install: false
@@ -401,7 +419,7 @@ jobs:
401419
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
402420
with:
403421
go-version: 'stable'
404-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
422+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
405423
with:
406424
pixi-version: v0.63.2
407425
run-install: false
@@ -426,17 +444,23 @@ jobs:
426444
with:
427445
fetch-depth: 1
428446
persist-credentials: false
447+
submodules: 'recursive'
429448
- name: load package
430449
working-directory: go
431450
run: |
432451
if [[ -f ci/scripts/pre-build.sh ]]; then
433452
echo "Loading pre-build"
434453
./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
435454
fi
436-
455+
set -a
456+
if [[ -f .env.build ]]; then
457+
echo "Loading .env.build"
458+
source .env.build
459+
fi
437460
if [[ -f .env.ci ]]; then
438461
source .env.ci
439462
fi
463+
set +a
440464
pixi exec -s adbc-driver-manager -s pyarrow -s pytest python -m pytest -vs ci/test_package.py
441465
442466
release:
@@ -454,13 +478,9 @@ jobs:
454478
with:
455479
fetch-depth: 0
456480
persist-credentials: false
481+
submodules: 'recursive'
457482

458-
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
459-
with:
460-
check-latest: true
461-
go-version: "stable"
462-
463-
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
483+
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
464484
with:
465485
pixi-version: v0.63.2
466486
run-install: false

0 commit comments

Comments
 (0)