-
Notifications
You must be signed in to change notification settings - Fork 7
113 lines (113 loc) · 3.39 KB
/
gha_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# NOTE: this is needed by codecov
# apparently:
# https://github.com/codecov/codecov-action/issues/190
fetch-depth: 2
- name: Build
run: bash tools/gha_conda_coverage.sh
manylinux228-py311:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python311"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py310:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python310"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py39:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python39"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
manylinux228-py38:
runs-on: ubuntu-latest
container:
image: pagmo2/manylinux228_x86_64_with_deps:latest
env:
CASCADE_PY_BUILD_TYPE: "Python38"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_manylinux.sh
windows_2019:
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:
activate-environment: cascade_devel
environment-file: cascade_devel.yml
auto-update-conda: true
channels: conda-forge
channel-priority: strict
auto-activate-base: false
- name: Build
shell: pwsh
run: |
mkdir build
cd build
cmake ../ -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\cascade_devel\Library -DCASCADE_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON -DCASCADE_BUILD_PYTHON_BINDINGS=yes
cmake --build . -j4 --config Release --target install
ctest -j4 -V -C Release
cd c:\
python -c "from cascade import test; test.run_test_suite()"
osx_11:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Build
run: bash tools/gha_conda_osx.sh
build-and-deploydocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install and Build 🔧
run: bash tools/gha_deploydocs.sh
- name: Upload to github pages 🚀
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/_build/html # The folder the action should deploy.