@@ -37,25 +37,29 @@ jobs:
37
37
strategy :
38
38
matrix :
39
39
include :
40
- - { os: ubuntu-latest, python: '3.10', arch: x64 }
41
- - { os: ubuntu-latest, python: '3.9', arch: x64 }
42
- - { os: ubuntu-latest, python: '3.8', arch: x64 }
43
- - { os: ubuntu-latest, python: '3.7', arch: x64 }
44
-
45
- - { os: macos-10.15, python: '3.10', arch: x64 }
46
- - { os: macos-10.15, python: '3.9', arch: x64 }
47
- - { os: macos-10.15, python: '3.8', arch: x64 }
48
- - { os: macos-10.15, python: '3.7', arch: x64 }
49
-
50
- - { os: windows-latest, python: '3.10', arch: x64 }
51
- - { os: windows-latest, python: '3.9', arch: x64 }
52
- - { os: windows-latest, python: '3.8', arch: x64 }
53
- - { os: windows-latest, python: '3.7', arch: x64 }
54
-
55
- - { os: windows-latest, python: '3.10', arch: x86 }
56
- - { os: windows-latest, python: '3.9', arch: x86 }
57
- - { os: windows-latest, python: '3.8', arch: x86 }
58
- - { os: windows-latest, python: '3.7', arch: x86 }
40
+ - { os: ubuntu-latest, python: '3.11', arch: x64, conda: true}
41
+ - { os: ubuntu-latest, python: '3.10', arch: x64, conda: true }
42
+ - { os: ubuntu-latest, python: '3.9', arch: x64, conda: true }
43
+ - { os: ubuntu-latest, python: '3.8', arch: x64, conda: true }
44
+ - { os: ubuntu-latest, python: '3.7', arch: x64, conda: true }
45
+
46
+ - { os: macos-11, python: '3.11', arch: x64, conda: true }
47
+ - { os: macos-11, python: '3.10', arch: x64, conda: true }
48
+ - { os: macos-11, python: '3.9', arch: x64, conda: true }
49
+ - { os: macos-11, python: '3.8', arch: x64, conda: true }
50
+ - { os: macos-11, python: '3.7', arch: x64, conda: true }
51
+
52
+ - { os: windows-latest, python: '3.11', arch: x64, conda: true }
53
+ - { os: windows-latest, python: '3.10', arch: x64, conda: true }
54
+ - { os: windows-latest, python: '3.9', arch: x64, conda: true }
55
+ - { os: windows-latest, python: '3.8', arch: x64, conda: true }
56
+ - { os: windows-latest, python: '3.7', arch: x64, conda: true }
57
+
58
+ - { os: windows-latest, python: '3.11', arch: x86, conda: false } # conda not yet available
59
+ - { os: windows-latest, python: '3.10', arch: x86, conda: true }
60
+ - { os: windows-latest, python: '3.9', arch: x86, conda: true }
61
+ - { os: windows-latest, python: '3.8', arch: x86, conda: true }
62
+ - { os: windows-latest, python: '3.7', arch: x86, conda: true }
59
63
60
64
if : github.repository == 'chrisjbillington/zprocess' && (github.event_name != 'create' || github.event.ref_type != 'branch')
61
65
steps :
95
99
path : ./dist
96
100
97
101
- name : Set Variables for Conda Build
102
+ if : matrix.conda
98
103
shell : bash
99
104
run : |
100
105
if [ $NOARCH == true ]; then
@@ -105,34 +110,36 @@ jobs:
105
110
echo "CONDA_BUILD_ARGS=$CONDA_BUILD_ARGS" >> $GITHUB_ENV
106
111
107
112
- name : Install Miniconda
113
+ if : matrix.conda
108
114
uses : conda-incubator/setup-miniconda@v2
109
115
with :
110
116
auto-update-conda : true
111
117
python-version : ${{ matrix.python }}
112
118
architecture : ${{ matrix.arch }}
113
119
miniconda-version : " latest"
114
120
115
- - name : Workaround conda-build incompatibility with xcode >12
121
+ - name : Workaround conda-build incompatibility with xcode 12+
116
122
if : runner.os == 'macOS'
117
123
uses : maxim-lobanov/setup-xcode@v1
118
124
with :
119
125
xcode-version : 11.7
120
126
121
127
- name : Conda package (Unix)
122
- if : runner.os != 'Windows'
128
+ if : (matrix.conda && runner.os != 'Windows')
123
129
shell : bash -l {0}
124
130
run : |
125
131
conda install -c labscript-suite setuptools-conda
126
132
setuptools-conda build $CONDA_BUILD_ARGS .
127
133
128
134
- name : Conda Package (Windows)
129
- if : runner.os == 'Windows'
135
+ if : (matrix.conda && runner.os == 'Windows')
130
136
shell : cmd /C CALL {0}
131
137
run : |
132
138
conda install -c labscript-suite setuptools-conda && ^
133
139
setuptools-conda build %CONDA_BUILD_ARGS% --croot ${{ runner.temp }}\cb .
134
140
135
141
- name : Upload Artifact
142
+ if : matrix.conda
136
143
uses : actions/upload-artifact@v3
137
144
with :
138
145
name : conda_packages
@@ -158,7 +165,7 @@ jobs:
158
165
if : env.PURE == 'false'
159
166
160
167
with :
161
- python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
168
+ python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 '
162
169
pre-build-command : ' git config --global --add safe.directory "*"'
163
170
164
171
- name : Upload Artifact
0 commit comments