Skip to content

Commit

Permalink
#42 update conda build action
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Apr 18, 2024
1 parent d7abd44 commit 233436e
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/conda-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,34 @@ name: conda-build-linux

on:
workflow_dispatch:
inputs:
variant:
description: "Variant of the conda package to build"
required: true
type: string
default: "linux_64_python3.10_cpython"

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4
- name: checkout
uses: actions/checkout@v4

- name: build conda package
run: ./build-py310.sh
working-directory: infra/conda/chaste

- name: upload conda package artifacts
uses: actions/upload-artifact@v4
with:
name: pychaste-conda
path: infra/conda/chaste/build_artifacts/linux-64
- name: build conda package
run: |
docker run -it --rm \
-v $(pwd):/home/conda \
-e HOST_USER_ID="$(id -u)" \
quay.io/condaforge/linux-anvil-cos7-x86_64 \
./build-package.sh \
--variant=${{ github.event.inputs.variant }} \
--parallel=$(nproc)
working-directory: infra/conda/chaste

- name: upload conda package artifacts
uses: actions/upload-artifact@v4
with:
name: pychaste-conda
path: infra/conda/chaste/build_artifacts/linux-64

0 comments on commit 233436e

Please sign in to comment.