Skip to content

Commit

Permalink
Merge pull request #645 from ReactionMechanismGenerator/fix/conda_recipe
Browse files Browse the repository at this point in the history
Small Patches to the Conda Build
  • Loading branch information
JacksonBurns authored Apr 1, 2024
2 parents 0623bd4 + 21b690a commit c7a2335
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 43 deletions.
12 changes: 0 additions & 12 deletions .conda/bld.bat

This file was deleted.

1 change: 1 addition & 0 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ source:
path: ../

build:
noarch: generic
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}

requirements:
Expand Down
47 changes: 16 additions & 31 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,34 @@
name: Conda Build

on:
pull_request:
push:
branches:
- stable
jobs:
build-linux:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
- name: Conda info
- 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 info
conda list
- name: Build Binary
env:
CONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda install -y conda-build
conda install -y anaconda-client
conda config --add channels rmg
conda config --set anaconda_upload yes
conda build --token $CONDA_TOKEN --user rmg .conda
build-osx:
runs-on: macos-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
- name: Conda info
run: |
conda info
conda list
- name: Build Binary
env:
CONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda install -y conda-build
conda install -y anaconda-client
conda config --add channels rmg
conda config --set anaconda_upload yes
conda build --token $CONDA_TOKEN --user rmg .conda
conda config --add channels conda-forge
conda-build --token $CONDA_TOKEN --user rmg .conda

0 comments on commit c7a2335

Please sign in to comment.