41
41
os : ['macos-latest', 'windows-latest', 'ubuntu-18.04']
42
42
py-version : ['3.6', '3.7', '3.8', '3.9']
43
43
tf-version : ['2.4.2', '2.6.0']
44
+ cpu : ['x86']
45
+ include :
46
+ - os : ' macos-11'
47
+ cpu : ' arm64'
48
+ tf-version : ' 2.5.0'
49
+ py-version : ' 3.8'
50
+ - os : ' macos-11'
51
+ cpu : ' arm64'
52
+ tf-version : ' 2.5.0'
53
+ py-version : ' 3.9'
44
54
fail-fast : false
45
55
steps :
46
56
@@ -68,12 +78,13 @@ jobs:
68
78
PY_VERSION : ${{ matrix.py-version }}
69
79
TF_VERSION : ${{ matrix.tf-version }}
70
80
NIGHTLY_TIME : ${{ steps.author-date.outputs.result }}
81
+ CPU : ${{ matrix.cpu }}
71
82
shell : bash
72
- run : bash .github/workflows/make_wheel_${OS}.sh
83
+ run : bash .github/workflows/make_wheel_${OS}_${CPU} .sh
73
84
- if : matrix.py-version != '3.9' || matrix.tf-version != '2.4.2'
74
85
uses : actions/upload-artifact@v1
75
86
with :
76
- name : ${{ runner.os }}-${{ matrix.py-version }}-tf${{ matrix.tf-version }}-wheel
87
+ name : ${{ runner.os }}-${{ matrix.py-version }}-tf${{ matrix.tf-version }}-${{ matrix.cpu }}- wheel
77
88
path : wheelhouse
78
89
upload-wheels :
79
90
name : Publish wheels to PyPi
@@ -84,12 +95,22 @@ jobs:
84
95
os : ['macOS', 'Windows', 'Linux']
85
96
py-version : ['3.6', '3.7', '3.8', '3.9']
86
97
tf-version : ['2.6.0']
98
+ cpu : ['x86']
99
+ include :
100
+ - os : ' macos-11'
101
+ cpu : ' arm64'
102
+ tf-version : ' 2.5.0'
103
+ py-version : ' 3.8'
104
+ - os : ' macos-11'
105
+ cpu : ' arm64'
106
+ tf-version : ' 2.5.0'
107
+ py-version : ' 3.9'
87
108
fail-fast : false
88
109
if : (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release'
89
110
steps :
90
111
- uses : actions/download-artifact@v1
91
112
with :
92
- name : ${{ matrix.os }}-${{ matrix.py-version }}-tf${{ matrix.tf-version }}-wheel
113
+ name : ${{ matrix.os }}-${{ matrix.py-version }}-tf${{ matrix.tf-version }}-${{ matrix.cpu }}- wheel
93
114
path : ./dist
94
115
- run : |
95
116
set -e -x
0 commit comments