Merge pull request #144 from bluescarni/pr/cfunc_perf_fix #665
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: GitHub CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
conda_asan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_conda_asan.sh | |
conda_static: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_conda_static.sh | |
osx_heyoka_head: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_osx_heyoka_head.sh | |
osx_heyoka_head_static: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_osx_heyoka_head_static.sh | |
manylinux228-py311: | |
runs-on: ubuntu-latest | |
container: | |
image: pagmo2/manylinux228_x86_64_with_deps:latest | |
env: | |
HEYOKA_PY_BUILD_TYPE: "Python311" | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_manylinux.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheel_311 | |
path: build/wheel/dist2/*.whl | |
manylinux228-py310: | |
runs-on: ubuntu-latest | |
container: | |
image: pagmo2/manylinux228_x86_64_with_deps:latest | |
env: | |
HEYOKA_PY_BUILD_TYPE: "Python310" | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_manylinux.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheel_310 | |
path: build/wheel/dist2/*.whl | |
manylinux228-py39: | |
runs-on: ubuntu-latest | |
container: | |
image: pagmo2/manylinux228_x86_64_with_deps:latest | |
env: | |
HEYOKA_PY_BUILD_TYPE: "Python39" | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_manylinux.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheel_39 | |
path: build/wheel/dist2/*.whl | |
manylinux228-py38: | |
runs-on: ubuntu-latest | |
container: | |
image: pagmo2/manylinux228_x86_64_with_deps:latest | |
env: | |
HEYOKA_PY_BUILD_TYPE: "Python38" | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: bash tools/gha_manylinux.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheel_38 | |
path: build/wheel/dist2/*.whl | |
windows_2019_heyoka_head: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: "3.10" | |
channels: conda-forge | |
channel-priority: strict | |
- name: Build | |
shell: pwsh | |
run: | | |
conda install -y python=3.10 git pybind11 numpy cmake 'llvmdev=14.*' tbb-devel tbb astroquery boost-cpp fmt spdlog sleef sympy cloudpickle zlib libzlib mppp numba | |
git clone https://github.com/bluescarni/heyoka.git heyoka_cpp | |
cd heyoka_cpp | |
mkdir build | |
cd build | |
cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH=C:\Miniconda\envs\test\Library -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\test\Library -DBoost_NO_BOOST_CMAKE=ON -DHEYOKA_ENABLE_IPO=yes -DHEYOKA_WITH_SLEEF=yes -DHEYOKA_WITH_MPPP=yes | |
cmake --build . --config Release --target install | |
cd .. | |
cd .. | |
mkdir build | |
cd build | |
cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH=C:\Miniconda\envs\test\Library -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\test\Library -DBoost_NO_BOOST_CMAKE=ON -DHEYOKA_PY_ENABLE_IPO=yes | |
cmake --build . --config Release --target install | |
cd .. | |
cd tools | |
python ci_test_runner.py --with-numba | |
binder_cache: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: cache binder build on mybinder.org | |
uses: jupyterhub/repo2docker-action@master | |
with: | |
NO_PUSH: true | |
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on. |