|
41 | 41 | - uses: actions/checkout@v4 |
42 | 42 | - id: set-matrix |
43 | 43 | name: build matrix |
44 | | - uses: rusher/mariadb-test-build-matrix@main |
| 44 | + uses: mariadb-corporation/connector-ci-build-matrix@main |
45 | 45 | with: |
46 | | - additional-matrix: '[]' |
| 46 | + additional-matrix: '[{"name": "MariaDB 11.4 (local) - windows 2025", "os": "windows-2025", "db-type": "community", "db-tag": "11.4"},{"name": "MariaDB 11.4 32bits (local) - windows 2025", "os": "windows-2025", "db-type": "community", "db-tag": "11.4", "arch": "32"}]' |
47 | 47 |
|
48 | 48 | ci: |
49 | 49 | name: ${{ matrix.name }} |
|
59 | 59 |
|
60 | 60 | - name: Setup Test Environment |
61 | 61 | id: setup-env |
62 | | - uses: rusher/mariadb-test-setup@master |
| 62 | + uses: mariadb-corporation/connector-ci-setup@master |
63 | 63 | with: |
64 | 64 | node-version: ${{ matrix.node }} |
65 | 65 | db-type: ${{ matrix.db-type }} |
@@ -96,27 +96,36 @@ jobs: |
96 | 96 | run: | |
97 | 97 | choco install wixtoolset -y |
98 | 98 |
|
99 | | - - name: make windows |
100 | | - if: ${{ startsWith(matrix.os, 'windows') }} |
| 99 | + - name: make windows 64bits |
| 100 | + if: ${{ startsWith(matrix.os, 'windows') && (matrix.arch != '32' || !matrix.arch) }} |
101 | 101 | shell: powershell |
102 | 102 | run: | |
103 | 103 | cmake -DCONC_WITH_MSI=OFF -DCONC_WITH_UNIT_TESTS=OFF -DWITH_MSI=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=SCHANNEL . #-DDIRECT_LINK_TESTS=1 . |
104 | 104 | cmake --build . --config RelWithDebInfo |
105 | 105 |
|
| 106 | + - name: make windows 32bits |
| 107 | + if: ${{ startsWith(matrix.os, 'windows') && startsWith(matrix.arch, '32') }} |
| 108 | + run: | |
| 109 | + cmake -A Win32 -DCONC_WITH_MSI=OFF -DCONC_WITH_UNIT_TESTS=OFF -DWITH_MSI=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=SCHANNEL . #-DDIRECT_LINK_TESTS=1 . |
| 110 | + cmake --build . --config RelWithDebInfo |
| 111 | +
|
106 | 112 | - name: Install generated MSI (Windows only) |
107 | 113 | if: startsWith(matrix.os, 'windows') |
108 | 114 | shell: powershell |
109 | 115 | run: | |
110 | 116 | pwd |
111 | 117 | ls ${{ github.workspace }}\packaging\windows |
112 | 118 | Get-ChildItem -Path ${{ github.workspace }}\packaging\windows\mariadb-connector-odbc-*.msi |
113 | | - $log = "install.log" |
| 119 | + $log = ".\install.log" |
114 | 120 | foreach ($msi in Get-ChildItem -Path ${{ github.workspace }}\packaging\windows\mariadb-connector-odbc-*.msi) { |
115 | | - $procInstall= Start-Process msiexec.exe -ArgumentList "/i $($msi.FullName) /qn /norestart" -NoNewWindow -PassThru |
116 | | - #$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru |
117 | | - #$procMain.WaitForExit() |
118 | | - #$procLog.Kill() |
| 121 | + $procInstall= Start-Process msiexec.exe -ArgumentList "/i $($msi.FullName) /qn /norestart /L* $log" -NoNewWindow -PassThru |
| 122 | + Get-Content -Path $log -Wait | ForEach-Object { |
| 123 | + if ($proc.HasExited) { break } |
| 124 | + $_ |
| 125 | + } |
| 126 | + Write-Host "Installer exit code: $($procInstall.ExitCode)" |
119 | 127 | } |
| 128 | + Start-Sleep -Milliseconds 500 |
120 | 129 | Get-OdbcDriver -Platform "64-bit" |
121 | 130 | Add-OdbcDsn -Name $env:TEST_DSN -DriverName "MariaDB ODBC 3.1 Driver" -DsnType "User" -SetPropertyValue @( "SERVER=$env:TEST_SERVER", "DATABASE=$env:TEST_SCHEMA", "USER=$env:TEST_UID", "PASSWORD=$env:TEST_PASSWORD", "PORT=$env:TEST_PORT" ) |
122 | 131 |
|
|
0 commit comments