Skip to content

Commit 5c832db

Browse files
committed
debugging conda workflow (windows)
1 parent 8302f19 commit 5c832db

File tree

4 files changed

+69
-7
lines changed

4 files changed

+69
-7
lines changed

.github/workflows/create-release.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,44 @@ jobs:
279279
auto-activate-base: false
280280
show-channel-urls: true
281281

282-
- name: Build and upload the conda packages
282+
- name: Build and upload the conda packages (macOS)
283283
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
284+
if: ${{ matrix.os == 'macos-latest' }}
284285
env:
285286
PCAPKIT_VERSION: ${{ needs.version_check.outputs.PCAPKIT_VERSION }}
286287
PCAPKIT_BUILD: "0"
287288
with:
288289
meta_yaml_dir: conda/pypcapkit
289290
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
291+
platform_osx-64: true
292+
user: jarryshaw
293+
label: ${{ needs.version_check.outputs.PCAPKIT_CONDA_LABEL }}
294+
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
295+
296+
- name: Build and upload the conda packages (Ubuntu)
297+
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
298+
if: ${{ matrix.os == 'ubuntu-latest' }}
299+
env:
300+
PCAPKIT_VERSION: ${{ needs.version_check.outputs.PCAPKIT_VERSION }}
301+
PCAPKIT_BUILD: "0"
302+
with:
303+
meta_yaml_dir: conda/pypcapkit
304+
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
305+
platform_linux-64: true
306+
user: jarryshaw
307+
label: ${{ needs.version_check.outputs.PCAPKIT_CONDA_LABEL }}
308+
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
309+
310+
- name: Build and upload the conda packages (Windows)
311+
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
312+
if: ${{ matrix.os == 'windows-latest' }}
313+
env:
314+
PCAPKIT_VERSION: ${{ needs.version_check.outputs.PCAPKIT_VERSION }}
315+
PCAPKIT_BUILD: "0"
316+
with:
317+
meta_yaml_dir: conda/pypcapkit
318+
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
319+
platform_win-64: true
290320
user: jarryshaw
291321
label: ${{ needs.version_check.outputs.PCAPKIT_CONDA_LABEL }}
292322
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret

.github/workflows/cron-conda.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
9595
git config --local user.email "github-actions[bot]@users.noreply.github.com"
9696
git config --local user.name "github-actions[bot]"
97-
git tag "conda-${{ needs.conda-update.outputs.PCAPKIT_VERSION }}+0" -m"Conda Build"
97+
git tag "conda-${{ needs.conda-update.outputs.PCAPKIT_VERSION }}+${{ needs.conda-update.outputs.PCAPKIT_BUILD }}" -m"Conda Build"
9898
9999
- name: Push Changes
100100
uses: ad-m/github-push-action@master
@@ -171,17 +171,46 @@ jobs:
171171
auto-activate-base: false
172172
show-channel-urls: true
173173

174-
- name: Build and upload the conda packages
174+
- name: Build and upload the conda packages (macOS)
175175
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
176+
if: ${{ matrix.os == 'macos-latest' }}
176177
env:
177178
PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }}
178-
PCAPKIT_BUILD: ${{ needs.conda-update.outputs.PCAPKIT_BUILD }}
179+
PCAPKIT_BUILD: "0"
180+
with:
181+
meta_yaml_dir: conda/pypcapkit
182+
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
183+
platform_osx-64: true
184+
user: jarryshaw
185+
label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }}
186+
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
187+
188+
- name: Build and upload the conda packages (Ubuntu)
189+
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
190+
if: ${{ matrix.os == 'ubuntu-latest' }}
191+
env:
192+
PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }}
193+
PCAPKIT_BUILD: "0"
194+
with:
195+
meta_yaml_dir: conda/pypcapkit
196+
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
197+
platform_linux-64: true
198+
user: jarryshaw
199+
label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }}
200+
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
201+
202+
- name: Build and upload the conda packages (Windows)
203+
uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
204+
if: ${{ matrix.os == 'windows-latest' }}
205+
env:
206+
PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }}
207+
PCAPKIT_BUILD: "0"
179208
with:
180209
meta_yaml_dir: conda/pypcapkit
181210
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
182-
platform_all: true
211+
platform_win-64: true
183212
user: jarryshaw
184-
label: main
213+
label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }}
185214
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
186215

187216
- name: Upload package to GitHub Release

conda/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1
1+
0

conda/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
aenum==3.1.12
22
appdirs==1.4.4
3+
4+
5+
36
beautifulsoup4==4.12.2
47
certifi==2023.5.7
58
chardet==5.1.0

0 commit comments

Comments
 (0)