Skip to content

Commit

Permalink
ci fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Nov 6, 2023
1 parent 9543474 commit 80ccdf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ci/scripts/python_build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ $ErrorActionPreference = "Stop"
$SourceDir = $Args[0]
$BuildDir = $Args[1]

cmake -S "$($SourceDir)\c" -B $BuildDir -DADBC_BUILD_PYTHON=ON
$BuildAll = $env:BUILD_ALL -ne "0"
$BuildDriverManager = ($BuildAll -and (-not ($env:BUILD_DRIVER_MANAGER -eq "0"))) -or ($env:BUILD_DRIVER_MANAGER -eq "1")

cmake -S "$($SourceDir)\c" -B $BuildDir -DADBC_DRIVER_MANAGER=$BuildDriverManager -DADBC_BUILD_PYTHON=ON
cmake --build build --target python
5 changes: 4 additions & 1 deletion ci/scripts/python_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@

set -e

: ${BUILD_ALL:=1}
: ${BUILD_DRIVER_MANAGER:=${BUILD_ALL}}

main() {
local -r source_dir="${1}"
local -r build_dir="${2}"

set -x

cmake -S "${source_dir}/c" -B ${build_dir} -DADBC_BUILD_PYTHON=ON
cmake -S "${source_dir}/c" -B ${build_dir} -DADBC_DRIVER_MANAGER=${BUILD_DRIVER_MANAGER} -DADBC_BUILD_PYTHON=ON
cmake --build build --target python

set +x
Expand Down

0 comments on commit 80ccdf6

Please sign in to comment.