Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions .github/workflows/build-upload-conda-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Deploy conda pkgs (test)

on:
pull_request:
workflow_dispatch:

jobs:
# Job to deploy llvm-openmp-dev, runs once as it is independent of the python
# version.
conda-deploy-llvm-openmp-dev:
name: 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: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- 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/action-build-and-upload-conda-packages@v1.3.0
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: llvmlite ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: Create and activate conda 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/action-build-and-upload-conda-packages@v1.3.0
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: numba ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: Create and activate conda 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/action-build-and-upload-conda-packages@v1.3.0
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: pyomp ${{ 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: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
- name: Create and activate conda 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/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: buildscripts/conda-recipes/pyomp
python-version: "3.10"
user: python-for-hpc
label: test
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}
96 changes: 0 additions & 96 deletions .github/workflows/build-upload-conda.yaml

This file was deleted.

138 changes: 138 additions & 0 deletions .github/workflows/build-upload-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Deploy conda pkgs (main)

on:
release:
types: [published]
workflow_dispatch:

jobs:
# Job to deploy llvm-openmp-dev, runs once as it is independent of the python
# version.
conda-deploy-llvm-openmp-dev:
name: 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: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Create and activate conda env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.10"
environment-file: .github/workflows/envs/env.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload llvm-openmp-dev
uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: buildscripts/conda-recipes/llvm-openmp-dev
python-version: "3.10"
user: python-for-hpc
label: main
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: llvmlite ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Create and activate conda env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/envs/env.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload llvmlite
uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: buildscripts/conda-recipes/llvmlite
python-version: ${{ matrix.python-version }}
user: python-for-hpc
label: main
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}

# Job to deploy numba, matrixed on os and python version.
conda-deploy-numba:
needs: conda-deploy-llvmlite
name: numba ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Create and activate conda env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/envs/env.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload numba
uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: buildscripts/conda-recipes/numba
python-version: ${{ matrix.python-version }}
user: python-for-hpc
label: main
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: pyomp ${{ 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: Set env for HEAD SHA
run:
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Create and activate conda env
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: .github/workflows/envs/env.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload pyomp
uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: buildscripts/conda-recipes/pyomp
python-version: "3.10"
user: python-for-hpc
label: main
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}
8 changes: 8 additions & 0 deletions .github/workflows/envs/env-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
channels:
- python-for-hpc/label/test
- conda-forge

dependencies:
- anaconda-client
- conda-build
- conda-verify
File renamed without changes.
Loading
Loading