Skip to content

Commit 2d892e2

Browse files
Release for Python 3.11
1 parent 59b23fd commit 2d892e2

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

.github/workflows/release.yml

+30-23
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,29 @@ jobs:
3737
strategy:
3838
matrix:
3939
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 }
5963

6064
if: github.repository == 'chrisjbillington/zprocess' && (github.event_name != 'create' || github.event.ref_type != 'branch')
6165
steps:
@@ -95,6 +99,7 @@ jobs:
9599
path: ./dist
96100

97101
- name: Set Variables for Conda Build
102+
if: matrix.conda
98103
shell: bash
99104
run: |
100105
if [ $NOARCH == true ]; then
@@ -105,34 +110,36 @@ jobs:
105110
echo "CONDA_BUILD_ARGS=$CONDA_BUILD_ARGS" >> $GITHUB_ENV
106111
107112
- name: Install Miniconda
113+
if: matrix.conda
108114
uses: conda-incubator/setup-miniconda@v2
109115
with:
110116
auto-update-conda: true
111117
python-version: ${{ matrix.python }}
112118
architecture: ${{ matrix.arch }}
113119
miniconda-version: "latest"
114120

115-
- name: Workaround conda-build incompatibility with xcode >12
121+
- name: Workaround conda-build incompatibility with xcode 12+
116122
if: runner.os == 'macOS'
117123
uses: maxim-lobanov/setup-xcode@v1
118124
with:
119125
xcode-version: 11.7
120126

121127
- name: Conda package (Unix)
122-
if: runner.os != 'Windows'
128+
if: (matrix.conda && runner.os != 'Windows')
123129
shell: bash -l {0}
124130
run: |
125131
conda install -c labscript-suite setuptools-conda
126132
setuptools-conda build $CONDA_BUILD_ARGS .
127133
128134
- name: Conda Package (Windows)
129-
if: runner.os == 'Windows'
135+
if: (matrix.conda && runner.os == 'Windows')
130136
shell: cmd /C CALL {0}
131137
run: |
132138
conda install -c labscript-suite setuptools-conda && ^
133139
setuptools-conda build %CONDA_BUILD_ARGS% --croot ${{ runner.temp }}\cb .
134140
135141
- name: Upload Artifact
142+
if: matrix.conda
136143
uses: actions/upload-artifact@v3
137144
with:
138145
name: conda_packages
@@ -158,7 +165,7 @@ jobs:
158165
if: env.PURE == 'false'
159166
uses: RalfG/[email protected]
160167
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'
162169
pre-build-command: 'git config --global --add safe.directory "*"'
163170

164171
- name: Upload Artifact

0 commit comments

Comments
 (0)