17
17
uses : actions/cache@v4
18
18
with :
19
19
path : c:/mariadb-connector
20
- key : mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win-1
20
+ key : mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win-2
21
21
22
22
- name : Download and Unzip Connector
23
23
if : steps.cache-connector.outputs.cache-hit != 'true'
@@ -27,18 +27,32 @@ jobs:
27
27
unzip "mariadb-connector-c-${CONNECTOR_VERSION}-src.zip" -d c:/
28
28
mv "c:/mariadb-connector-c-${CONNECTOR_VERSION}-src" c:/mariadb-connector-src
29
29
30
- - name : Build Connector
30
+ - name : make build directory
31
31
if : steps.cache-connector.outputs.cache-hit != 'true'
32
32
shell : cmd
33
33
working-directory : c:/mariadb-connector-src
34
34
run : |
35
35
mkdir build
36
- cd build
37
- cmake -A x64 .. -DCMAKE_BUILD_TYPE=Release -DCLIENT_PLUGIN_DIALOG=static \
38
- -DCLIENT_PLUGIN_SHA256_PASSWORD=static \
39
- -DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=static \
40
- -DDEFAULT_SSL_VERIFY_SERVER_CERT=0
36
+
37
+ - name : cmake
38
+ if : steps.cache-connector.outputs.cache-hit != 'true'
39
+ shell : cmd
40
+ working-directory : c:/mariadb-connector-src/build
41
+ run : |
42
+ cmake -A x64 .. -DCMAKE_BUILD_TYPE=Release -DCLIENT_PLUGIN_DIALOG=static -DCLIENT_PLUGIN_SHA256_PASSWORD=static -DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=static -DDEFAULT_SSL_VERIFY_SERVER_CERT=0
43
+
44
+ - name : cmake build
45
+ if : steps.cache-connector.outputs.cache-hit != 'true'
46
+ shell : cmd
47
+ working-directory : c:/mariadb-connector-src/build
48
+ run : |
41
49
cmake --build . -j 8 --config Release
50
+
51
+ - name : cmake install
52
+ if : steps.cache-connector.outputs.cache-hit != 'true'
53
+ shell : cmd
54
+ working-directory : c:/mariadb-connector-src/build
55
+ run : |
42
56
cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake
43
57
44
58
- name : Checkout mysqlclient
0 commit comments