Skip to content

Commit e750ed3

Browse files
committed
debugging conda workflow
1 parent 9864c53 commit e750ed3

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/cron-conda.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104

105105
conda-dist:
106106
name: Conda deployment of package for platform ${{ matrix.os }} with Python ${{ matrix.python-version }}
107-
runs-on: ubuntu-latest
107+
runs-on: ${{ matrix.os }}
108108
needs: [ conda-tag, conda-update ]
109109
if: needs.conda-update.outputs.CONDA_CHANGED == 'true'
110110
strategy:
@@ -130,20 +130,35 @@ jobs:
130130
python-version: ${{ matrix.python-version }}
131131

132132
- name: Install and Setup
133+
if: ${{ matrix.os != 'windows-latest' }}
133134
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
135140
141+
- name: Install and Setup (Windows)
142+
if: ${{ matrix.os == 'windows-latest' }}
143+
run: |
136144
python -m pip install -U pip setuptools wheel
137145
python -m pip install -e .[all]
138146
python -m pip install pathlib2 typing_extensions
139147
140148
- name: Setup Conda Distribution
149+
if: ${{ matrix.os != 'windows-latest' }}
141150
run: |
142-
#set -x
151+
set -x
143152
144153
mkdir -p conda/wheels
145154
python -m pip download -r conda/requirements.txt -d conda/wheels
146155
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+
147162
- name: Conda environment creation and activation
148163
uses: conda-incubator/setup-miniconda@v2
149164
env:
@@ -170,10 +185,21 @@ jobs:
170185
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
171186

172187
- name: Upload package to GitHub Release
188+
if: ${{ matrix.os != 'windows-latest' }}
173189
uses: ncipollo/release-action@v1.12.0
174190
with:
175191
allowUpdates: true
176192
artifacts: |
177193
/tmp/compilation-*/**/*.tar.bz2
178194
tag: "v${{ needs.conda-update.outputs.PCAPKIT_VERSION }}"
179195
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 }}"

conda/pypcapkit/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
"%PYTHON%" -m pip install conda/wheels/* --target pcapkit/_extern -vv
1+
"%PYTHON%" -m pip install conda\wheels\* --target pcapkit\_extern -vv
22
"%PYTHON%" -m pip install . -vv
33
if errorlevel 1 exit 1

conda/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
aenum==3.1.12
2+
3+
24
appdirs==1.4.4
35
beautifulsoup4==4.12.2
46
certifi==2023.5.7

0 commit comments

Comments
 (0)