Build conda packages #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build conda packages | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ${{ fromJSON(vars.BUILD_OS)}} | |
| python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}} | |
| steps: | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v4 | |
| - name: update submodules | |
| # shell: bash -l {0} | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Conda build | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
| shell: bash -l {0} | |
| run: | | |
| conda update -n base -c defaults conda -y | |
| conda install -n base conda-libmamba-solver -y | |
| conda config --set solver libmamba | |
| conda install -c conda-forge conda-build anaconda-client conda-verify -y | |
| conda install -c conda-forge -c loop3d --file requirements.txt -y | |
| conda build -c anaconda -c conda-forge -c loop3d --output-folder conda conda --python ${{ matrix.python-version }} | |
| anaconda upload --label main conda/*/*.tar.bz2 | |
| - name: upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: conda-build-${{matrix.os}}-${{ matrix.python-version }} | |
| path: conda |