@@ -104,7 +104,7 @@ jobs:
104
104
105
105
conda-dist :
106
106
name : Conda deployment of package for platform ${{ matrix.os }} with Python ${{ matrix.python-version }}
107
- runs-on : ubuntu-latest
107
+ runs-on : ${{ matrix.os }}
108
108
needs : [ conda-tag, conda-update ]
109
109
if : needs.conda-update.outputs.CONDA_CHANGED == 'true'
110
110
strategy :
@@ -130,20 +130,35 @@ jobs:
130
130
python-version : ${{ matrix.python-version }}
131
131
132
132
- name : Install and Setup
133
+ if : ${{ matrix.os != 'windows-latest' }}
133
134
run : |
134
- #set -x
135
+ set -x
136
+
137
+ python -m pip install -U pip setuptools wheel
138
+ python -m pip install -e .[all]
139
+ python -m pip install pathlib2 typing_extensions
135
140
141
+ - name : Install and Setup (Windows)
142
+ if : ${{ matrix.os == 'windows-latest' }}
143
+ run : |
136
144
python -m pip install -U pip setuptools wheel
137
145
python -m pip install -e .[all]
138
146
python -m pip install pathlib2 typing_extensions
139
147
140
148
- name : Setup Conda Distribution
149
+ if : ${{ matrix.os != 'windows-latest' }}
141
150
run : |
142
- # set -x
151
+ set -x
143
152
144
153
mkdir -p conda/wheels
145
154
python -m pip download -r conda/requirements.txt -d conda/wheels
146
155
156
+ - name : Setup Conda Distribution (Windows)
157
+ if : ${{ matrix.os == 'windows-latest' }}
158
+ run : |
159
+ mkdir -p conda/wheels
160
+ python -m pip download -r conda/requirements.txt -d conda/wheels
161
+
147
162
- name : Conda environment creation and activation
148
163
uses : conda-incubator/setup-miniconda@v2
149
164
env :
@@ -170,10 +185,21 @@ jobs:
170
185
token : ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
171
186
172
187
- name : Upload package to GitHub Release
188
+ if : ${{ matrix.os != 'windows-latest' }}
173
189
uses : ncipollo/release-action@v1.12.0
174
190
with :
175
191
allowUpdates : true
176
192
artifacts : |
177
193
/tmp/compilation-*/**/*.tar.bz2
178
194
tag : " v${{ needs.conda-update.outputs.PCAPKIT_VERSION }}"
179
195
token : " ${{ secrets.GITHUB_TOKEN }}"
196
+
197
+ - name : Upload package to GitHub Release (Windows)
198
+ if : ${{ matrix.os == 'windows-latest' }}
199
+ uses : ncipollo/release-action@v1.12.0
200
+ with :
201
+ allowUpdates : true
202
+ artifacts : |
203
+ /c/Users/*/AppData/Local/Temp/compilation-*/**/*.tar.bz2
204
+ tag : " v${{ needs.conda-update.outputs.PCAPKIT_VERSION }}"
205
+ token : " ${{ secrets.GITHUB_TOKEN }}"
0 commit comments