Skip to content

Commit

Permalink
Merge pull request #18 from ReactionMechanismGenerator/dr_frankenstein
Browse files Browse the repository at this point in the history
Complete `conda-recipes` Overhaul
  • Loading branch information
JacksonBurns authored Jun 28, 2024
2 parents 898fa16 + ac4fa67 commit d48b233
Show file tree
Hide file tree
Showing 90 changed files with 60 additions and 2,110 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build Packages

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
workflow_dispatch:
push:
branches:
- stable
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
recipe: [symmetry]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: false
conda-solver: libmamba
auto-activate-base: true
activate-environment: ""
- name: Install Build Tools
run: conda install python anaconda-client conda-build
- name: Configure Auto-Upload
if: github.ref == 'refs/heads/stable'
run: |
conda config --set anaconda_upload yes
- name: Build Binary
run: |
# set a default value to the conda_token if needed (like from forks)
: "${CONDA_TOKEN:=${{ secrets.ANACONDA_TOKEN }}}"
: "${CONDA_TOKEN:=default_value}"
echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
conda config --add channels conda-forge
conda config --add channels rmg
conda build --token $CONDA_TOKEN --user rmg ${{ matrix.recipe }}
result:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [build]
steps:
- run: exit 1
# see https://github.com/orgs/community/discussions/26822?sort=new#discussioncomment-8285141
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
*~
*.swp
*.idea/
14 changes: 0 additions & 14 deletions CoolProp/bld.bat

This file was deleted.

12 changes: 0 additions & 12 deletions CoolProp/build.sh

This file was deleted.

66 changes: 0 additions & 66 deletions CoolProp/meta.yaml

This file was deleted.

12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Conda Recipes for RMG-Py dependencies

Example recipes for the new conda build system. Use
Example recipes for the conda build system.
Run `conda build <recipe directory>`.

conda build <recipe directory>

You have to use conda >= 1.7
[conda](https://github.com/continuumio/conda).

See http://docs.continuum.io/conda/build.html for information on how to make a recipe,
or just look at the examples here.
You have to use `conda >= 23.1.0` - see the [installation instructions](https://docs.anaconda.com/free/anaconda/install/).

See [the `conda` documentation](https://docs.conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-pkgs.html) for information on how to make a recipe or just look at the examples here.
37 changes: 0 additions & 37 deletions cairo/bld.bat

This file was deleted.

30 changes: 0 additions & 30 deletions cairo/build.sh

This file was deleted.

44 changes: 0 additions & 44 deletions cairo/meta.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions cairocffi/bld.bat

This file was deleted.

7 changes: 0 additions & 7 deletions cairocffi/build.sh

This file was deleted.

44 changes: 0 additions & 44 deletions cairocffi/meta.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions cairocffi/run_test.sh

This file was deleted.

17 changes: 0 additions & 17 deletions cairocffi/search-conda-libs.diff

This file was deleted.

11 changes: 0 additions & 11 deletions cclib/build.sh

This file was deleted.

Loading

0 comments on commit d48b233

Please sign in to comment.