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 1f2a7ae commit c3a43fd
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(vars.BUILD_OS) }}
python: ${{ fromJSON(vars.PYTHON_VERSIONS) }}
os: [ubuntu-latest, windows-latest, macos-latest]
python: [3.9, 3.10, 3.11]

steps:
- uses: conda-incubator/setup-miniconda@v3
Expand All @@ -19,22 +20,31 @@ jobs:

- uses: actions/checkout@v4

- run: git submodule update --init --recursive
- name: Create and activate build environment
shell: bash
run: |
conda create -n build_env -c conda-forge python=${{ matrix.python }} -y
conda activate build_env
- 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
- name: Install dependencies (Linux-specific)
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
run: |
conda install --no-plugins -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:
- name: Build Conda package
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
shell: bash
run: |
conda activate build_env
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
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: conda-build-${{ matrix.os }}-${{ matrix.python }}
path: conda
path: conda

0 comments on commit c3a43fd

Please sign in to comment.