Skip to content

Commit 2476ed9

Browse files
committed
retry Anaconda build
1 parent 7da012e commit 2476ed9

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

.github/workflows/build-conda.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
# - name: (windows) Install rtools MinGW compilers
22-
# if: matrix.os == 'windows-latest'
23-
# run: |
24-
# choco install rtools -y --no-progress --force --version=4.0.0.20220206
25-
#
26-
# - name: (windows) Add compiler path to PATH
27-
# if: matrix.os == 'windows-latest'
28-
# uses: myci-actions/export-env-var-powershell@1
29-
# with:
30-
# name: PATH
31-
# value: c:\rtools40\ucrt64\bin;c:\rtools40\usr\bin;$env:PATH
21+
- name: (windows) Install rtools MinGW compilers
22+
if: matrix.os == 'windows-latest'
23+
run: |
24+
choco install rtools -y --no-progress --force --version=4.0.0.20220206
25+
26+
- name: (windows) Add compiler path to PATH
27+
if: matrix.os == 'windows-latest'
28+
uses: myci-actions/export-env-var-powershell@1
29+
with:
30+
name: PATH
31+
value: c:\rtools40\ucrt64\bin;c:\rtools40\usr\bin;$env:PATH
3232

3333
- name: Setup miniforge
3434
uses: conda-incubator/setup-miniconda@v3
@@ -45,18 +45,17 @@ jobs:
4545
mkdir build_output
4646
which anaconda
4747
48-
# - name: Build packages for ${{ matrix.os }}
49-
# shell: bash -el {0}
50-
# run: conda build --no-anaconda-upload --output-folder ./build_output ./packaging/conda
51-
#
52-
# - uses: actions/upload-artifact@v4
53-
# with:
54-
# name: build_outputs-${{ matrix.os }}
55-
# path: ./build_output/*/pysces*.*
48+
- name: Build packages for ${{ matrix.os }}
49+
shell: bash -el {0}
50+
run: conda build --no-anaconda-upload --output-folder ./build_output ./packaging/conda
51+
52+
- uses: actions/upload-artifact@v4
53+
with:
54+
name: build_outputs-${{ matrix.os }}
55+
path: ./build_output/*/pysces*.*
5656

5757
- name: Upload to anaconda.org
5858
# to publish when a GitHub Release is created:
5959
# if: github.event_name == 'release' && github.event.action == 'released'
6060
shell: bash -el {0}
61-
# run: anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u pysces ./build_output/*/pysces*.*
62-
run: which anaconda
61+
run: anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u pysces ./build_output/*/pysces*.*

0 commit comments

Comments
 (0)