Skip to content

Commit 4b6b961

Browse files
Add llvm-openmp-dev package and update ci (#5)
- Add llvm-openmp-dev package to replace llvmdev - Add github ci for test label on PR - Add github ci for main label on release - Add glitlab ci for ppc64 deployment - Update conda recipes for llvmlite, numba, pyomp - Remove submodules - Remove local buildscripts
1 parent 6383dcb commit 4b6b961

File tree

59 files changed

+885
-6551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+885
-6551
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
name: Deploy conda pkgs (test)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
# Job to deploy llvm-openmp-dev, runs once as it is independent of the python
9+
# version.
10+
conda-deploy-llvm-openmp-dev:
11+
name: llvm-openmp-dev ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
#os: [ubuntu-latest, macOS-latest, windows-latest]
16+
os: [ubuntu-latest, macOS-latest]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set env for HEAD SHA
20+
run:
21+
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
22+
- name: Create and activate conda env
23+
uses: conda-incubator/setup-miniconda@v3
24+
with:
25+
python-version: "3.10"
26+
environment-file: .github/workflows/envs/env-test.yml
27+
auto-update-conda: false
28+
auto-activate-base: false
29+
show-channel-urls: true
30+
- name: Build and upload llvm-openmp-dev
31+
uses: uibcdf/[email protected]
32+
with:
33+
meta_yaml_dir: buildscripts/conda-recipes/llvm-openmp-dev
34+
python-version: "3.10"
35+
user: python-for-hpc
36+
label: test
37+
overwrite: true
38+
token: ${{ secrets.ANACONDA_TOKEN }}
39+
40+
# Job to deploy llvmlite and numba, matrixed on os and python version.
41+
conda-deploy-llvmlite:
42+
needs: conda-deploy-llvm-openmp-dev
43+
name: llvmlite ${{ matrix.os }} ${{ matrix.python-version }}
44+
runs-on: ${{ matrix.os }}
45+
strategy:
46+
matrix:
47+
#os: [ubuntu-latest, macOS-latest, windows-latest]
48+
os: [ubuntu-latest, macOS-latest]
49+
python-version: ["3.8", "3.9", "3.10"]
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Set env for HEAD SHA
53+
run:
54+
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
55+
- name: Create and activate conda env
56+
uses: conda-incubator/setup-miniconda@v3
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
environment-file: .github/workflows/envs/env-test.yml
60+
auto-update-conda: false
61+
auto-activate-base: false
62+
show-channel-urls: true
63+
- name: Build and upload llvmlite
64+
uses: uibcdf/[email protected]
65+
with:
66+
meta_yaml_dir: buildscripts/conda-recipes/llvmlite
67+
python-version: ${{ matrix.python-version }}
68+
user: python-for-hpc
69+
label: test
70+
overwrite: true
71+
token: ${{ secrets.ANACONDA_TOKEN }}
72+
73+
# Job to deploy numba, matrixed on os and python version.
74+
conda-deploy-numba:
75+
needs: conda-deploy-llvmlite
76+
name: numba ${{ matrix.os }} ${{ matrix.python-version }}
77+
runs-on: ${{ matrix.os }}
78+
strategy:
79+
matrix:
80+
#os: [ubuntu-latest, macOS-latest, windows-latest]
81+
os: [ubuntu-latest, macOS-latest]
82+
python-version: ["3.8", "3.9", "3.10"]
83+
steps:
84+
- uses: actions/checkout@v4
85+
- name: Set env for HEAD SHA
86+
run:
87+
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
88+
- name: Create and activate conda env
89+
uses: conda-incubator/setup-miniconda@v3
90+
with:
91+
python-version: ${{ matrix.python-version }}
92+
environment-file: .github/workflows/envs/env-test.yml
93+
auto-update-conda: false
94+
auto-activate-base: false
95+
show-channel-urls: true
96+
- name: Build and upload numba
97+
uses: uibcdf/[email protected]
98+
with:
99+
meta_yaml_dir: buildscripts/conda-recipes/numba
100+
python-version: ${{ matrix.python-version }}
101+
user: python-for-hpc
102+
label: test
103+
overwrite: true
104+
token: ${{ secrets.ANACONDA_TOKEN }}
105+
106+
# Job to deploy the pyomp metapackage, runs once as it is independent of the
107+
# python version.
108+
conda-deploy-pyomp:
109+
needs: conda-deploy-numba
110+
name: pyomp ${{ matrix.os }}
111+
runs-on: ${{ matrix.os }}
112+
strategy:
113+
matrix:
114+
#os: [ubuntu-latest, macOS-latest, windows-latest]
115+
os: [ubuntu-latest, macOS-latest]
116+
steps:
117+
- uses: actions/checkout@v4
118+
- name: Set env for HEAD SHA
119+
run:
120+
echo "GITHUB_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
121+
- name: Create and activate conda env
122+
uses: conda-incubator/setup-miniconda@v3
123+
with:
124+
python-version: ${{ matrix.python-version }}
125+
environment-file: .github/workflows/envs/env-test.yml
126+
auto-update-conda: false
127+
auto-activate-base: false
128+
show-channel-urls: true
129+
- name: Build and upload pyomp
130+
uses: uibcdf/[email protected]
131+
with:
132+
meta_yaml_dir: buildscripts/conda-recipes/pyomp
133+
python-version: "3.10"
134+
user: python-for-hpc
135+
label: test
136+
overwrite: true
137+
token: ${{ secrets.ANACONDA_TOKEN }}

.github/workflows/build-upload-conda.yaml

Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
name: Deploy conda pkgs (main)
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
# Job to deploy llvm-openmp-dev, runs once as it is independent of the python
10+
# version.
11+
conda-deploy-llvm-openmp-dev:
12+
name: llvm-openmp-dev ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
#os: [ubuntu-latest, macOS-latest, windows-latest]
17+
os: [ubuntu-latest, macOS-latest]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set env for HEAD SHA
21+
run:
22+
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
23+
- name: Create and activate conda env
24+
uses: conda-incubator/setup-miniconda@v3
25+
with:
26+
python-version: "3.10"
27+
environment-file: .github/workflows/envs/env.yml
28+
auto-update-conda: false
29+
auto-activate-base: false
30+
show-channel-urls: true
31+
- name: Build and upload llvm-openmp-dev
32+
uses: uibcdf/[email protected]
33+
with:
34+
meta_yaml_dir: buildscripts/conda-recipes/llvm-openmp-dev
35+
python-version: "3.10"
36+
user: python-for-hpc
37+
label: main
38+
overwrite: true
39+
token: ${{ secrets.ANACONDA_TOKEN }}
40+
41+
# Job to deploy llvmlite and numba, matrixed on os and python version.
42+
conda-deploy-llvmlite:
43+
needs: conda-deploy-llvm-openmp-dev
44+
name: llvmlite ${{ matrix.os }} ${{ matrix.python-version }}
45+
runs-on: ${{ matrix.os }}
46+
strategy:
47+
matrix:
48+
#os: [ubuntu-latest, macOS-latest, windows-latest]
49+
os: [ubuntu-latest, macOS-latest]
50+
python-version: ["3.8", "3.9", "3.10"]
51+
steps:
52+
- uses: actions/checkout@v4
53+
- name: Set env for HEAD SHA
54+
run:
55+
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
56+
- name: Create and activate conda env
57+
uses: conda-incubator/setup-miniconda@v3
58+
with:
59+
python-version: ${{ matrix.python-version }}
60+
environment-file: .github/workflows/envs/env.yml
61+
auto-update-conda: false
62+
auto-activate-base: false
63+
show-channel-urls: true
64+
- name: Build and upload llvmlite
65+
uses: uibcdf/[email protected]
66+
with:
67+
meta_yaml_dir: buildscripts/conda-recipes/llvmlite
68+
python-version: ${{ matrix.python-version }}
69+
user: python-for-hpc
70+
label: main
71+
overwrite: true
72+
token: ${{ secrets.ANACONDA_TOKEN }}
73+
74+
# Job to deploy numba, matrixed on os and python version.
75+
conda-deploy-numba:
76+
needs: conda-deploy-llvmlite
77+
name: numba ${{ matrix.os }} ${{ matrix.python-version }}
78+
runs-on: ${{ matrix.os }}
79+
strategy:
80+
matrix:
81+
#os: [ubuntu-latest, macOS-latest, windows-latest]
82+
os: [ubuntu-latest, macOS-latest]
83+
python-version: ["3.8", "3.9", "3.10"]
84+
steps:
85+
- uses: actions/checkout@v4
86+
- name: Set env for HEAD SHA
87+
run:
88+
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
89+
- name: Create and activate conda env
90+
uses: conda-incubator/setup-miniconda@v3
91+
with:
92+
python-version: ${{ matrix.python-version }}
93+
environment-file: .github/workflows/envs/env.yml
94+
auto-update-conda: false
95+
auto-activate-base: false
96+
show-channel-urls: true
97+
- name: Build and upload numba
98+
uses: uibcdf/[email protected]
99+
with:
100+
meta_yaml_dir: buildscripts/conda-recipes/numba
101+
python-version: ${{ matrix.python-version }}
102+
user: python-for-hpc
103+
label: main
104+
overwrite: true
105+
token: ${{ secrets.ANACONDA_TOKEN }}
106+
107+
# Job to deploy the pyomp metapackage, runs once as it is independent of the
108+
# python version.
109+
conda-deploy-pyomp:
110+
needs: conda-deploy-numba
111+
name: pyomp ${{ matrix.os }}
112+
runs-on: ${{ matrix.os }}
113+
strategy:
114+
matrix:
115+
#os: [ubuntu-latest, macOS-latest, windows-latest]
116+
os: [ubuntu-latest, macOS-latest]
117+
steps:
118+
- uses: actions/checkout@v4
119+
- name: Set env for HEAD SHA
120+
run:
121+
echo "GITHUB_HEAD_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
122+
- name: Create and activate conda env
123+
uses: conda-incubator/setup-miniconda@v3
124+
with:
125+
python-version: ${{ matrix.python-version }}
126+
environment-file: .github/workflows/envs/env.yml
127+
auto-update-conda: false
128+
auto-activate-base: false
129+
show-channel-urls: true
130+
- name: Build and upload pyomp
131+
uses: uibcdf/[email protected]
132+
with:
133+
meta_yaml_dir: buildscripts/conda-recipes/pyomp
134+
python-version: "3.10"
135+
user: python-for-hpc
136+
label: main
137+
overwrite: true
138+
token: ${{ secrets.ANACONDA_TOKEN }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
channels:
2+
- python-for-hpc/label/test
3+
- conda-forge
4+
5+
dependencies:
6+
- anaconda-client
7+
- conda-build
8+
- conda-verify
File renamed without changes.

0 commit comments

Comments
 (0)