-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ReactionMechanismGenerator/dr_frankenstein
Complete `conda-recipes` Overhaul
- Loading branch information
Showing
90 changed files
with
60 additions
and
2,110 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 |
---|---|---|
@@ -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') }} |
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,3 +0,0 @@ | ||
*~ | ||
*.swp | ||
*.idea/ | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.