Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 13, 2024
1 parent 8acf210 commit 1f2a7ae
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions .github/workflows/conda.yml
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

0 comments on commit 1f2a7ae

Please sign in to comment.