Release sire-emle #46
Workflow file for this run
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
name: Release sire-emle | |
# Note that push and pull-request builds are automatically | |
# now skipped by GitHub if | |
# [skip ci], [ci skip], [no ci], [skip actions], or [actions skip] | |
# are in the commit message. We don't need to check for this ourselves. | |
# Only allow this action to run on a manual run. | |
# We should specify when run whether or not we want | |
# to upload the packages at the end. | |
on: | |
workflow_dispatch: | |
inputs: | |
upload_packages: | |
description: "Upload packages to anaconda (yes/no)?" | |
required: true | |
default: "no" | |
jobs: | |
build: | |
name: build (${{ matrix.python-version }}, ${{ matrix.platform.name }}) | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
max-parallel: 9 | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
platform: | |
- { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } | |
- { name: "macos", os: "macos-latest", shell: "bash -l {0}" } | |
environment: | |
name: sire-build | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
env: | |
SIRE_DONT_PHONEHOME: 1 | |
SIRE_SILENT_PHONEHOME: 1 | |
SIRE_EMLE: 1 | |
REPO: "${{ github.event.pull_request.head.repo.full_name || github.repository }}" | |
steps: | |
# | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
activate-environment: sire_build | |
miniforge-version: latest | |
# | |
- name: Clone the feature_emle branch | |
run: git clone -b feature_emle https://github.com/openbiosim/sire sire | |
# | |
- name: Setup Conda | |
run: conda install -y -c conda-forge boa anaconda-client packaging pip-requirements-parser | |
# | |
- name: Update Conda recipe | |
run: python ${{ github.workspace }}/sire/actions/update_recipe.py | |
# | |
- name: Prepare build location | |
run: mkdir ${{ github.workspace }}/build | |
# | |
- name: Build Conda package using conda build | |
run: conda build -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/sire/recipes/sire | |
# | |
- name: Upload Conda package | |
# upload to the 'test' channel | |
run: python ${{ github.workspace }}/sire/actions/upload_package.py emle | |
env: | |
SRC_DIR: ${{ github.workspace }}/sire | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
if: github.event.inputs.upload_packages == 'yes' |