@@ -2,24 +2,22 @@ name: Build windows wheels
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - master
7
5
create :
8
6
workflow_dispatch :
9
7
10
8
jobs :
11
9
build :
12
10
runs-on : windows-latest
13
11
env :
14
- CONNECTOR_VERSION : " 3.1.11 "
12
+ CONNECTOR_VERSION : " 3.1.9 "
15
13
steps :
16
14
17
15
- name : Cache Connector
18
16
id : cache-connector
19
17
uses : actions/cache@v1
20
18
with :
21
19
path : c:/mariadb-connector
22
- key : mariadb-connector-${ CONNECTOR_VERSION}-win
20
+ key : mariadb-connector-c-${{ env. CONNECTOR_VERSION } }-win
23
21
24
22
- name : Download and Unzip Connector
25
23
if : steps.cache-connector.outputs.cache-hit != 'true'
@@ -41,15 +39,13 @@ jobs:
41
39
cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake
42
40
43
41
- name : Checkout mysqlclient
44
- uses : actions/checkout@v1
42
+ uses : actions/checkout@v2
45
43
with :
46
- ref : master
47
- fetch-depth : 10
48
44
path : mysqlclient
49
45
50
46
- name : Site Config
51
47
shell : bash
52
- working-directory : ../ mysqlclient
48
+ working-directory : mysqlclient
53
49
run : |
54
50
pwd
55
51
find .
62
58
63
59
- name : Build wheels
64
60
shell : cmd
65
- working-directory : ../ mysqlclient
61
+ working-directory : mysqlclient
66
62
run : |
67
63
py -3.9 -m pip install -U setuptools wheel pip
68
64
py -3.9 setup.py bdist_wheel
@@ -74,14 +70,14 @@ jobs:
74
70
py -3.6 setup.py bdist_wheel
75
71
76
72
- name : Upload Wheel
77
- uses : actions/upload-artifact@v1
73
+ uses : actions/upload-artifact@v2
78
74
with :
79
75
name : win-wheels
80
- path : ../ mysqlclient/dist
76
+ path : mysqlclient/dist/*.whl
81
77
82
78
- name : Check wheels
83
79
shell : bash
84
- working-directory : ../ mysqlclient/dist
80
+ working-directory : mysqlclient/dist
85
81
run : |
86
82
ls -la
87
83
py -3.9 -m pip install --no-index --find-links . mysqlclient
0 commit comments