Skip to content

Commit d48b233

Browse files
authored
Merge pull request #18 from ReactionMechanismGenerator/dr_frankenstein
Complete `conda-recipes` Overhaul
2 parents 898fa16 + ac4fa67 commit d48b233

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+60
-2110
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Packages
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
pull_request:
9+
workflow_dispatch:
10+
push:
11+
branches:
12+
- stable
13+
jobs:
14+
build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
19+
recipe: [symmetry]
20+
runs-on: ${{ matrix.os }}
21+
defaults:
22+
run:
23+
shell: bash -l {0}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Setup Conda
27+
uses: conda-incubator/setup-miniconda@v3
28+
with:
29+
auto-update-conda: false
30+
conda-solver: libmamba
31+
auto-activate-base: true
32+
activate-environment: ""
33+
- name: Install Build Tools
34+
run: conda install python anaconda-client conda-build
35+
- name: Configure Auto-Upload
36+
if: github.ref == 'refs/heads/stable'
37+
run: |
38+
conda config --set anaconda_upload yes
39+
- name: Build Binary
40+
run: |
41+
# set a default value to the conda_token if needed (like from forks)
42+
: "${CONDA_TOKEN:=${{ secrets.ANACONDA_TOKEN }}}"
43+
: "${CONDA_TOKEN:=default_value}"
44+
echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
45+
conda config --add channels conda-forge
46+
conda config --add channels rmg
47+
conda build --token $CONDA_TOKEN --user rmg ${{ matrix.recipe }}
48+
result:
49+
if: ${{ always() }}
50+
runs-on: ubuntu-latest
51+
name: Final Results
52+
needs: [build]
53+
steps:
54+
- run: exit 1
55+
# see https://github.com/orgs/community/discussions/26822?sort=new#discussioncomment-8285141
56+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
*~
2-
*.swp
3-
*.idea/

CoolProp/bld.bat

Lines changed: 0 additions & 14 deletions
This file was deleted.

CoolProp/build.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

CoolProp/meta.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Conda Recipes for RMG-Py dependencies
22

3-
Example recipes for the new conda build system. Use
3+
Example recipes for the conda build system.
4+
Run `conda build <recipe directory>`.
45

5-
conda build <recipe directory>
6-
7-
You have to use conda >= 1.7
8-
[conda](https://github.com/continuumio/conda).
9-
10-
See http://docs.continuum.io/conda/build.html for information on how to make a recipe,
11-
or just look at the examples here.
6+
You have to use `conda >= 23.1.0` - see the [installation instructions](https://docs.anaconda.com/free/anaconda/install/).
127

8+
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.

cairo/bld.bat

Lines changed: 0 additions & 37 deletions
This file was deleted.

cairo/build.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

cairo/meta.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

cairocffi/bld.bat

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)