77 build :
88 runs-on : ${{ matrix.os }}
99 strategy :
10+ fail-fast : false
1011 matrix :
11- os : ${{ fromJSON(vars.BUILD_OS) }}
12- python : ${{ fromJSON(vars.PYTHON_VERSIONS) }}
12+ os : [ubuntu-latest, windows-latest, macos-latest]
13+ python : [3.9, 3.10, 3.11]
1314
1415 steps :
1516 - uses : conda-incubator/setup-miniconda@v3
@@ -19,22 +20,31 @@ jobs:
1920
2021 - uses : actions/checkout@v4
2122
22- - run : git submodule update --init --recursive
23+ - name : Create and activate build environment
24+ shell : bash
25+ run : |
26+ conda create -n build_env -c conda-forge python=${{ matrix.python }} -y
27+ conda activate build_env
2328
24- - run : |
25- conda update -n base -c defaults --all -y
26- conda config --set solver classic
27- conda install -n base -c conda-forge gxx_linux-64 sysroot_linux-64 libgcc-ng libstdcxx-ng -y
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
2834 conda install -c conda-forge conda-build anaconda-client conda-verify -y
2935 conda install -c conda-forge -c loop3d --file requirements.txt -y
3036
31- - env :
37+ - name : Build Conda package
38+ env :
3239 ANACONDA_API_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
40+ shell : bash
3341 run : |
42+ conda activate build_env
3443 conda build -c anaconda -c conda-forge -c loop3d --output-folder conda conda --python ${{ matrix.python }}
3544 anaconda upload --label main conda/*/*.tar.bz2
3645
37- - uses : actions/upload-artifact@v4
46+ - name : Upload artifacts
47+ uses : actions/upload-artifact@v4
3848 with :
3949 name : conda-build-${{ matrix.os }}-${{ matrix.python }}
40- path : conda
50+ path : conda
0 commit comments