-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (57 loc) · 1.61 KB
/
main.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
name: C++ Library
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
jobs:
linux_asan_debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_linux_asan_debug.sh
osx_11_debug:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_osx_debug.sh
windows_2022_release:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: kep3_devel
environment-file: kep3_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 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\kep3_devel\Library -Dkep3_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON
cmake --build . -j4 --config Release --target install
ctest -j4 -V -C Release --output-on-failure
linux_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_linux_coverage.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}