6060 strategy :
6161 matrix :
6262 include :
63- - { os: windows-latest, arch: x64, config: debug, msystem: UCRT64, msysbin: mingw64, env: x86_64, triplet: x64-windows }
64- - { os: windows-latest, arch: x64, config: release, msystem: UCRT64, msysbin: mingw64, env: x86_64, triplet: x64-windows-static-release }
65- - { os: windows-11-arm, arch: arm64, config: release, msystem: CLANGARM64, msysbin: clangarm64, env: clang-aarch64, triplet: arm64-windows-static-release }
63+ - { os: windows-latest, arch: x64, config: debug, msystem: UCRT64, msysbin: mingw64, env: x86_64, compiler-package: mingw-w64-x86_64-gcc, triplet: x64-windows }
64+ - { 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 }
65+ - { 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 }
6666 env :
6767 VCPKG_DEFAULT_BINARY_CACHE : ${{ github.workspace }}/vcpkg-cache
6868 VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}
@@ -80,18 +80,13 @@ jobs:
8080 # Needed for gendef tool in GoUtils.cmake
8181 install : |
8282 mingw-w64-${{ matrix.env }}-tools
83+ ${{ matrix.compiler-package }}
8384 - name : Add msys2 toolchain to PATH
8485 env :
8586 MSYS_LOCATION : ${{ steps.msys2.outputs.msys2-location }}
8687 run : |
8788 "$($env:MSYS_LOCATION)\${{ matrix.msysbin }}\bin" |
8889 Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
89- - name : Setup MSYS2 tools
90- if : matrix.arch == 'arm64'
91- shell : msys2 {0}
92- run : |
93- # Needed for CGO
94- pacman --noconfirm -S mingw-w64-${{ matrix.env }}-gcc-compat
9590 - name : Ensure vcpkg binary cache directory
9691 run : |
9792 New-Item -ItemType Directory -Force `
@@ -120,10 +115,23 @@ jobs:
120115 if (-not $?) { throw "failed to configure CMake" }
121116
122117 cmake --build .\build\${{ matrix.config }} --target install --config ${{ matrix.config }} --parallel
123- - name : Test
118+ - name : Test (C++)
124119 env :
125120 BUILD_ALL : " 0"
126121 BUILD_DRIVER_MANAGER : " 1"
127122 BUILD_DRIVER_MANAGER_USER_CONFIG_TEST : " 1"
128123 BUILD_DRIVER_SQLITE : " 1"
129124 run : .\ci\scripts\cpp_test.ps1 $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}
125+
126+ - uses : actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
127+ with :
128+ check-latest : true
129+ cache : true
130+ cache-dependency-path : go/adbc/go.sum
131+ go-version-file : go/adbc/go.mod
132+ - name : Test (Go/CGO)
133+ env :
134+ CGO_ENABLED : " 1"
135+ run : |
136+ .\ci\scripts\go_build.ps1 $pwd $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}
137+ .\ci\scripts\go_test.ps1 $pwd $pwd\build\${{ matrix.config }} $pwd\local\${{ matrix.config }}
0 commit comments