Add llvm-openmp-dev and update CI/CD #6
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: 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: [macOS-latest, ubuntu-latest, windows-latest] | |
os: [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 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/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/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/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 }} |