Skip to content

Commit 23233a6

Browse files
committed
added inputs
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
1 parent 37400b3 commit 23233a6

File tree

1 file changed

+12
-80
lines changed

1 file changed

+12
-80
lines changed

.github/workflows/odbc.yml

Lines changed: 12 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,23 @@
11
name: ODBC Driver
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ARROW_GIT_TAG:
7+
description: "The tag from https://github.com/apache/arrow to be pulled"
8+
required: false
9+
default: 'main'
10+
ODBCABSTRACTION_GIT_TAG:
11+
description: "The tag from https://github.com/dbt-labs/flightsql-odbc to be pulled"
12+
required: false
13+
default: 'master'
414
pull_request:
515
push:
6-
workflow_dispatch:
7-
inputs:
8-
ARROW_GIT_TAG:
9-
description: "The tag from https://github.com/apache/arrow to be pulled"
10-
required: true
11-
ODBCABSTRACTION_GIT_TAG:
12-
description: "The tag from https://github.com/dbt-labs/flightsql-odbc to be pulled"
13-
required: true
1416

1517
jobs:
1618
windows-odbc:
1719
runs-on: windows-latest
1820
steps:
19-
- name: Create repo directories
20-
run: |
21-
mkdir ../../gh
22-
23-
- name: Clone vcpkg
24-
run: |
25-
cd ../../gh
26-
git clone https://github.com/microsoft/vcpkg.git
27-
28-
- name: Set up vcpkg
29-
run: |
30-
cd ../../gh
31-
./vcpkg/bootstrap-vcpkg.bat
32-
33-
- name: Clone arrow
34-
run: |
35-
cd ../../gh
36-
git clone https://github.com/apache/arrow.git
37-
38-
- name: Clone flight odbc
39-
run: |
40-
cd ../../gh
41-
git clone https://github.com/dbt-labs/flightsql-odbc.git
42-
43-
# - name: Install CMake
44-
# uses: ssrobins/install-cmake@v1
45-
46-
# - uses: actions/checkout@v4
47-
48-
- name: Clone warpdrive
49-
run: |
50-
mkdir D:\a\wd
51-
cd D:\a\wd
52-
git clone https://github.com/Bit-Quill/warpdrive.git
53-
cd D:\a\wd\warpdrive
54-
git checkout gha-odbc
55-
git log
56-
57-
# - name: Move directories to shorten path
58-
# run: |
59-
# tree
60-
# mkdir D:\a\wd
61-
# Copy-Item -Path "D:\a\warpdrive" -Destination "D:\a\wd" -Recurse
62-
# cd D:\a\wd\warpdrive
63-
# tree
64-
65-
66-
- name: Change repo path to local repos
67-
run: |
68-
# # cd D:\a\wd\warpdrive
69-
# ./build_win64.bat
70-
# ls D:\a\wd
71-
# ls D:\a\wd\warpdrive
72-
# ls D:\a\wd\warpdrive
73-
(Get-Content D:\a\wd\warpdrive\build_win64.bat).Replace('ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"', 'ARROW_GIT_REPOSITORY="D:/a/gh/arrow"') | Set-Content D:\a\wd\warpdrive\build_win64.bat
74-
(Get-Content D:\a\wd\warpdrive\build_win64.bat).Replace('ODBCABSTRACTION_REPO="../flightsql-odbc"', 'ODBCABSTRACTION_REPO="D:/a/gh/flightsql-odbc"') | Set-Content D:\a\wd\warpdrive\build_win64.bat
75-
(Get-Content D:\a\wd\warpdrive\build_win64.bat).Replace('%VCPKG_ROOT%', 'D:/a/gh/vcpkg') | Set-Content D:\a\wd\warpdrive\build_win64.bat
76-
77-
- name: Upload bat file
78-
uses: actions/upload-artifact@v4
79-
with:
80-
name: build_win64.bat
81-
path: 'D:\a\wd\warpdrive\build_win64.bat'
82-
83-
- name: Set up MSVC Dev command prompt
84-
uses: ilammy/msvc-dev-cmd@v1.13.0
85-
with:
86-
arch: x64
87-
88-
- name: Build ODBC Driver
21+
- name: Print user input commits
8922
run: |
90-
cd D:\a\wd\warpdrive
91-
.\build_win64.bat
23+
echo "${{ toJSON(github.event.inputs) }}"

0 commit comments

Comments
 (0)