Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/native-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
strategy:
matrix:
include:
- { os: windows-latest, arch: x64, config: debug, msystem: UCRT64, msysbin: mingw64, env: x86_64, triplet: x64-windows }
- { os: windows-latest, arch: x64, config: release, msystem: UCRT64, msysbin: mingw64, env: x86_64, triplet: x64-windows-static-release }
- { os: windows-11-arm, arch: arm64, config: release, msystem: CLANGARM64, msysbin: clangarm64, env: clang-aarch64, triplet: arm64-windows-static-release }
- { os: windows-latest, arch: x64, config: debug, msystem: UCRT64, msysbin: mingw64, env: x86_64, compiler-package: mingw-w64-x86_64-gcc, triplet: x64-windows }
- { os: windows-latest, arch: x64, config: release, msystem: UCRT64, msysbin: mingw64, env: x86_64, compiler-package: mingw-w64-x86_64-gcc, triplet: x64-windows-static-release }
- { os: windows-11-arm, arch: arm64, config: release, msystem: CLANGARM64, msysbin: clangarm64, env: clang-aarch64, compiler-package: mingw-w64-clang-aarch64-gcc-compat, triplet: arm64-windows-static-release }
env:
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
Expand All @@ -80,18 +80,13 @@ jobs:
# Needed for gendef tool in GoUtils.cmake
install: |
mingw-w64-${{ matrix.env }}-tools
${{ matrix.compiler-package }}
- name: Add msys2 toolchain to PATH
env:
MSYS_LOCATION: ${{ steps.msys2.outputs.msys2-location }}
run: |
"$($env:MSYS_LOCATION)\${{ matrix.msysbin }}\bin" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Setup MSYS2 tools
if: matrix.arch == 'arm64'
shell: msys2 {0}
run: |
# Needed for CGO
pacman --noconfirm -S mingw-w64-${{ matrix.env }}-gcc-compat
- name: Ensure vcpkg binary cache directory
run: |
New-Item -ItemType Directory -Force `
Expand Down Expand Up @@ -120,10 +115,23 @@ jobs:
if (-not $?) { throw "failed to configure CMake" }

cmake --build .\build\${{ matrix.config }} --target install --config ${{ matrix.config }} --parallel
- name: Test
- name: Test (C++)
env:
BUILD_ALL: "0"
BUILD_DRIVER_MANAGER: "1"
BUILD_DRIVER_MANAGER_USER_CONFIG_TEST: "1"
BUILD_DRIVER_SQLITE: "1"
run: .\ci\scripts\cpp_test.ps1 $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}

- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
check-latest: true
cache: true
cache-dependency-path: go/adbc/go.sum
go-version-file: go/adbc/go.mod
- name: Test (Go/CGO)
env:
CGO_ENABLED: "1"
run: |
.\ci\scripts\go_build.ps1 $pwd $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}
.\ci\scripts\go_test.ps1 $pwd $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}
2 changes: 1 addition & 1 deletion ci/scripts/go_test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $BuildDir = $Args[1]
$InstallDir = if ($Args[2] -ne $null) { $Args[2] } else { Join-Path $BuildDir "local/" }

if ($env:CGO_ENABLED -eq "1") {
$env:PATH += "$($InstallDir)\bin"
$env:PATH = "$($InstallDir)\bin;$env:PATH"
}

$GoDir = Join-Path $SourceDir "go" "adbc"
Expand Down
Loading