Skip to content

Commit 556f05c

Browse files
committed
re-generate workflows
Based on adbc-drivers/dev#33
1 parent 759b66b commit 556f05c

File tree

6 files changed

+79
-36
lines changed

6 files changed

+79
-36
lines changed

.github/workflows/dev_issues.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@
33
# This file has been modified from its original version, which is
44
# under the Apache License:
55
#
6-
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
6+
# Licensed to the Apache Software Foundation (ASF) under one
7+
# or more contributor license agreements. See the NOTICE file
8+
# distributed with this work for additional information
9+
# regarding copyright ownership. The ASF licenses this file
10+
# to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance
12+
# with the License. You may obtain a copy of the License at
913
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
14+
# http://www.apache.org/licenses/LICENSE-2.0
1115
#
12-
# Unless required by applicable law or agreed to in writing, software
13-
# distributed under the License is distributed on an "AS IS" BASIS,
14-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
# See the License for the specific language governing permissions and
16-
# limitations under the License.
16+
# Unless required by applicable law or agreed to in writing,
17+
# software distributed under the License is distributed on an
18+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19+
# KIND, either express or implied. See the License for the
20+
# specific language governing permissions and limitations
21+
# under the License.
1722

1823
name: Issues Bot
1924

.github/workflows/dev_pr.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
pr_standard:
4242
name: "Check PR"
4343
runs-on: ubuntu-latest
44-
if: github.event_name == 'pull_request'
4544

4645
steps:
4746
- name: Check PR title format

.github/workflows/generate.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
driver = "databricks"
2+
3+
[lang]
4+
go = "true"

.github/workflows/go_release.yaml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ defaults:
4949

5050
jobs:
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

.github/workflows/go_test.yaml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@ defaults:
5353

5454
jobs:
5555
test:
56-
name: "Test/${{ matrix.os }} ${{ matrix.arch }}"
56+
name: "Test/${{ matrix.platform }}_${{ matrix.arch }}"
5757
runs-on: ${{ matrix.runner }}
5858
strategy:
5959
fail-fast: true
6060
matrix:
6161
include:
62-
- { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
63-
- { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
64-
- { os: Windows, platform: win, arch: amd64, runner: windows-latest }
62+
- { platform: linux, arch: amd64, runner: ubuntu-latest }
63+
- { platform: macos, arch: arm64, runner: macos-latest }
64+
- { platform: win, arch: amd64, runner: windows-latest }
6565
permissions:
6666
contents: read
6767
steps:
6868
- name: free up disk space
6969
if: runner.os != 'Windows'
7070
run: |
71-
# Rust uses a lot of disk space, free up some space
71+
# Preinstalled tools use a lot of disk space, free up some space
7272
# https://github.com/actions/runner-images/issues/2840
7373
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
7474
@@ -151,21 +151,21 @@ jobs:
151151
go test -tags assert -v ./...
152152
153153
validate:
154-
name: "Validate/${{ matrix.os }} ${{ matrix.arch }}"
154+
name: "Validate/${{ matrix.platform }}_${{ matrix.arch }}"
155155
runs-on: ${{ matrix.runner }}
156156
strategy:
157157
fail-fast: true
158158
matrix:
159159
include:
160160
# I think we only need to test one platform, but we can change that later
161-
- { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
161+
- { platform: linux, arch: amd64, runner: ubuntu-latest }
162162
permissions:
163163
contents: read
164164
steps:
165165
- name: free up disk space
166166
if: runner.os != 'Windows'
167167
run: |
168-
# Rust uses a lot of disk space, free up some space
168+
# Preinstalled tools use a lot of disk space, free up some space
169169
# https://github.com/actions/runner-images/issues/2840
170170
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
171171
@@ -189,6 +189,14 @@ jobs:
189189
- name: Build Library
190190
working-directory: go
191191
run: |
192+
if [[ -f ci/scripts/pre-build.sh ]]; then
193+
./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
194+
fi
195+
set -a
196+
if [[ -f .env.release ]]; then
197+
source .env.test
198+
fi
199+
set +a
192200
pixi run adbc-make build DEBUG=true VERBOSE=true DRIVER=databricks
193201
194202
- name: Start Test Dependencies
@@ -248,17 +256,17 @@ jobs:
248256
retention-days: 2
249257

250258
build:
251-
name: "Build databricks/${{ matrix.os }} ${{ matrix.arch }}"
259+
name: "Build databricks/${{ matrix.platform }}_${{ matrix.arch }}"
252260
needs: test
253261
runs-on: ${{ matrix.runner }}
254262
strategy:
255263
fail-fast: true
256264
matrix:
257265
include:
258-
- { os: Linux, platform: linux, arch: amd64, runner: ubuntu-latest }
259-
- { os: Linux, platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
260-
- { os: macOS, platform: macos, arch: arm64, runner: macos-latest }
261-
- { os: Windows, platform: windows, arch: amd64, runner: windows-latest }
266+
- { platform: linux, arch: amd64, runner: ubuntu-latest }
267+
- { platform: linux, arch: arm64, runner: ubuntu-24.04-arm }
268+
- { platform: macos, arch: arm64, runner: macos-latest }
269+
- { platform: windows, arch: amd64, runner: windows-latest }
262270
permissions:
263271
contents: read
264272
packages: read
@@ -293,6 +301,14 @@ jobs:
293301
- name: Build Library
294302
working-directory: go
295303
run: |
304+
if [[ -f ci/scripts/pre-build.sh ]]; then
305+
./ci/scripts/pre-build.sh release ${{ matrix.platform }} ${{ matrix.arch }}
306+
fi
307+
set -a
308+
if [[ -f .env.release ]]; then
309+
source .env.release
310+
fi
311+
set +a
296312
pixi run adbc-make check CI=true VERBOSE=true DRIVER=databricks
297313
298314
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0

go/pixi.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# !!!! AUTO-GENERATED FILE. DO NOT EDIT. !!!!
16+
# USE adbc-gen-workflow (see adbc-drivers/dev) TO UPDATE THIS FILE.
17+
1518
[workspace]
1619
authors = ["ADBC Drivers Contributors"]
1720
channels = ["conda-forge"]

0 commit comments

Comments
 (0)