-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8acf210
commit 1f2a7ae
Showing
1 changed file
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
name: Build conda packages | ||
name: Build Conda Packages | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ${{ fromJSON(vars.BUILD_OS)}} | ||
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}} | ||
os: ${{ fromJSON(vars.BUILD_OS) }} | ||
python: ${{ fromJSON(vars.PYTHON_VERSIONS) }} | ||
|
||
steps: | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
python-version: ${{ matrix.python }} | ||
|
||
- 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: git submodule update --init --recursive | ||
|
||
- run: | | ||
conda update -n base -c defaults --all -y | ||
conda config --set solver classic | ||
conda install -n base -c conda-forge gxx_linux-64 sysroot_linux-64 libgcc-ng libstdcxx-ng -y | ||
conda install -c conda-forge conda-build anaconda-client conda-verify -y | ||
conda install -c conda-forge -c loop3d --file requirements.txt -y | ||
- env: | ||
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | ||
run: | | ||
conda update -n base -c defaults --all -y | ||
conda config --set solver classic | ||
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 | ||
conda build -c anaconda -c conda-forge -c loop3d --output-folder conda conda --python ${{ matrix.python }} | ||
anaconda upload --label main conda/*/*.tar.bz2 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: conda-build-${{matrix.os}}-${{ matrix.python-version }} | ||
path: conda | ||
name: conda-build-${{ matrix.os }}-${{ matrix.python }} | ||
path: conda |