Skip to content

Fixing conda binary build via optional RMS install (dependent on #2631) #52

Fixing conda binary build via optional RMS install (dependent on #2631)

Fixing conda binary build via optional RMS install (dependent on #2631) #52

Workflow file for this run

name: Conda Build
on:
pull_request:
push:
branches:
- stable
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13]
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: true
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 rmg
conda config --add channels cantera
conda config --add channels conda-forge
conda config --add channels jacksonburns
conda-build --token $CONDA_TOKEN --user rmg .conda
- name: Test Binary Install with RMS
run: |
conda create --name rmg_test python=3.7*
conda activate rmg_test
conda install -c local rmg
conda install -c conda-forge julia=1.9.1 pyjulia>=0.6
conda install -c rmg pyrms diffeqpy
python -c "import julia; julia.install(); import diffeqpy; diffeqpy.install()"
julia -e 'using Pkg; Pkg.add(PackageSpec(name="ReactionMechanismSimulator",rev="main")); using ReactionMechanismSimulator'
python-jl rmg.py test/regression/RMS_constantVIdealGasReactor_superminimal/input.py