Skip to content

Commit 95af998

Browse files
committed
revert
1 parent c3a43fd commit 95af998

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

.github/workflows/conda.yml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,39 @@
1-
name: Build Conda Packages
1+
name: Build conda packages
22

33
on:
44
workflow_dispatch:
55

66
jobs:
7-
build:
7+
build_wheels:
8+
name: Build wheels on
89
runs-on: ${{ matrix.os }}
910
strategy:
1011
fail-fast: false
1112
matrix:
12-
os: [ubuntu-latest, windows-latest, macos-latest]
13-
python: [3.9, 3.10, 3.11]
14-
13+
os: ${{ fromJSON(vars.BUILD_OS)}}
14+
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}}
1515
steps:
1616
- uses: conda-incubator/setup-miniconda@v3
1717
with:
1818
auto-update-conda: true
19-
python-version: ${{ matrix.python }}
19+
python-version: ${{ matrix.python-version }}
2020

2121
- uses: actions/checkout@v4
22-
23-
- name: Create and activate build environment
24-
shell: bash
22+
- name: update submodules
23+
# shell: bash -l {0}
2524
run: |
26-
conda create -n build_env -c conda-forge python=${{ matrix.python }} -y
27-
conda activate build_env
28-
29-
- name: Install dependencies (Linux-specific)
30-
if: ${{ matrix.os == 'ubuntu-latest' }}
31-
shell: bash
32-
run: |
33-
conda install --no-plugins -c conda-forge gxx_linux-64 sysroot_linux-64 libgcc-ng libstdcxx-ng -y
34-
conda install -c conda-forge conda-build anaconda-client conda-verify -y
35-
conda install -c conda-forge -c loop3d --file requirements.txt -y
36-
37-
- name: Build Conda package
25+
git submodule update --init --recursive
26+
- name: Conda build
3827
env:
39-
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
40-
shell: bash
28+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
29+
shell: bash -l {0}
4130
run: |
42-
conda activate build_env
43-
conda build -c anaconda -c conda-forge -c loop3d --output-folder conda conda --python ${{ matrix.python }}
31+
conda install -c conda-forge conda-build scikit-build-core numpy cython anaconda-client conda-libmamba-solver -y
32+
conda build -c conda-forge -c loop3d --output-folder conda conda --python ${{matrix.python-version}}
4433
anaconda upload --label main conda/*/*.tar.bz2
4534
46-
- name: Upload artifacts
35+
- name: upload artifacts
4736
uses: actions/upload-artifact@v4
4837
with:
49-
name: conda-build-${{ matrix.os }}-${{ matrix.python }}
38+
name: conda-build-${{matrix.os}}-${{ matrix.python-version }}
5039
path: conda

0 commit comments

Comments
 (0)