Skip to content

Add llvm-openmp-dev and update CI/CD #16

Add llvm-openmp-dev and update CI/CD

Add llvm-openmp-dev and update CI/CD #16

name: Build and upload conda pkgs (test)
on:
pull_request:
jobs:
# Job to deploy llvm-openmp-dev, runs once as it is independent of the python
# version.
conda-deploy-llvm-openmp-dev:
name: Conda deploy llvm-openmp-dev ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macOS-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/envs/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 deploy llvmlite and numba, matrixed on os and python version.
conda-deploy-llvmlite:
needs: conda-deploy-llvm-openmp-dev
name: Conda deploy llvmlite ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macOS-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "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/envs/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 }}
# Job to deploy numba, matrixed on os and python version.
conda-deploy-numba:
needs: conda-deploy-llvmlite
name: Conda deploy numba ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macOS-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "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/envs/env-test.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- 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 }}
# Job to deploy the pyomp metapackage, runs once as it is independent of the
# python version.
conda-deploy-pyomp:
needs: conda-deploy-numba
name: Conda deploy pyomp ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macOS-latest, ubuntu-latest, windows-latest]
os: [macOS-latest]
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/envs/env-test.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload pyomp
uses: uibcdf/[email protected]
with:
meta_yaml_dir: buildscripts/conda-recipes/pyomp
python-version: "3.10"
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}