@@ -3,56 +3,70 @@ name: ODBC Driver
33on :
44 pull_request :
55 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
614
715jobs :
816 windows-odbc :
917 runs-on : windows-latest
1018 steps :
1119 - name : Create repo directories
1220 run : |
13- mkdir ../../github
21+ mkdir ../../gh
1422
1523 - name : Clone vcpkg
1624 run : |
17- cd ../../github
25+ cd ../../gh
1826 git clone https://github.com/microsoft/vcpkg.git
1927
2028 - name : Set up vcpkg
2129 run : |
22- cd ../../github
30+ cd ../../gh
2331 ./vcpkg/bootstrap-vcpkg.bat
2432
2533 - name : Clone arrow
2634 run : |
27- cd ../../github
35+ cd ../../gh
2836 git clone https://github.com/apache/arrow.git
2937
3038 - name : Clone flight odbc
3139 run : |
32- cd ../../github
40+ cd ../../gh
3341 git clone https://github.com/dbt-labs/flightsql-odbc.git
3442
3543 # - name: Install CMake
3644 # uses: ssrobins/install-cmake@v1
3745
3846 - uses : actions/checkout@v4
3947
40- - name : Change repo path to local repos
41- run : |
42- (Get-Content .\build_win64.bat).Replace('ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"', 'ARROW_GIT_REPOSITORY="D:/a/github/arrow"') | Set-Content .\build_win64.bat
43- (Get-Content .\build_win64.bat).Replace('ODBCABSTRACTION_REPO="../flightsql-odbc"', 'ODBCABSTRACTION_REPO="D:/a/github/flightsql-odbc"') | Set-Content .\build_win64.bat
44- (Get-Content .\build_win64.bat).Replace('%VCPKG_ROOT%', 'D:/a/github/vcpkg') | Set-Content .\build_win64.bat
45-
46- - name : Upload bat file
47- uses : actions/upload-artifact@v4
48- with :
49- name : build_win64.bat
50- path : ' .\build_win64.bat'
51-
52- - name : Set up MSVC Dev command prompt
53- uses : ilammy/msvc-dev-cmd@v1.13.0
54- with :
55- arch : x64
56-
57- - name : Build ODBC Driver
58- run : ./build_win64.bat
48+ - name : Move directories to shorten path
49+ run : |
50+ pwd
51+ tree
52+
53+
54+ # - name: Change repo path to local repos
55+ # run: |
56+ # (Get-Content .\build_win64.bat).Replace('ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"', 'ARROW_GIT_REPOSITORY="D:/a/gh/arrow"') | Set-Content .\build_win64.bat
57+ # (Get-Content .\build_win64.bat).Replace('ODBCABSTRACTION_REPO="../flightsql-odbc"', 'ODBCABSTRACTION_REPO="D:/a/gh/flightsql-odbc"') | Set-Content .\build_win64.bat
58+ # (Get-Content .\build_win64.bat).Replace('%VCPKG_ROOT%', 'D:/a/github/vcpkg') | Set-Content .\build_win64.bat
59+
60+ # - name: Upload bat file
61+ # uses: actions/upload-artifact@v4
62+ # with:
63+ # name: build_win64.bat
64+ # path: '.\build_win64.bat'
65+
66+ # - name: Set up MSVC Dev command prompt
67+ # uses: ilammy/msvc-dev-cmd@v1.13.0
68+ # with:
69+ # arch: x64
70+
71+ # - name: Build ODBC Driver
72+ # run: ./build_win64.bat
0 commit comments