Skip to content

Update workflow files #1

Update workflow files

Update workflow files #1

name: Build and upload conda pkgs (test)
on:
push:
# paths:
# - 'buildscripts/conda-recipes/**'
# - 'llvm-project'
# - 'llvmliteWithOpenmp'
# - 'NumbaWithOpenmp'
#pull_request:
# paths:
# - 'buildscripts/conda-recipes/**'
# - 'llvm-project'
# - 'llvmliteWithOpenmp'
# - 'NumbaWithOpenmp'
workflow_dispatch: # Un comment line if you also want to trigger action manually
jobs:
# Job creates llvm-openmp-dev, runs once, it is independent of the python
# version fixed at 3.10 for building.
conda-deploy-llvm-openmp-dev:
name: Conda deploy llvm-openmp-dev ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macOS-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Create and activate conda env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.10"
environment-file: .github/workflows/env-test.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload llvm-openmp-dev
uses: uibcdf/[email protected]
with:
meta_yaml_dir: buildscripts/conda-recipes/llvm-openmp-dev
python-version: "3.10"
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}
# Job to create llvmlite, numba, pyomp packages.
conda-deploy-llvmlite-numba-pyomp:
needs: conda-deploy-llvm-openmp-dev
name: Conda deploy llvmlite/numba/pyomp ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macOS-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
#python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Create and activate cond env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/env-test.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload llvmlite
uses: uibcdf/[email protected]
with:
meta_yaml_dir: buildscripts/conda-recipes/llvmlite
python-version: ${{ matrix.python-version }}
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}
- name: Build and upload numba
uses: uibcdf/[email protected]
with:
meta_yaml_dir: buildscripts/conda-recipes/numba
python-version: ${{ matrix.python-version }}
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}
- name: Build and upload pyomp
uses: uibcdf/[email protected]
with:
meta_yaml_dir: buildscripts/conda-recipes/pyomp
python-version: ${{ matrix.python-version }}
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}