File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed
Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+ # Copyright Contributors to the rawtoaces project.
3+
4+ name : Analysis
5+
6+ on :
7+ schedule :
8+ # Run nightly
9+ - cron : " 0 8 * * *"
10+ # Run weekly
11+ # - cron: "0 0 * * 0"
12+ push :
13+ # Run on pushes only to main or if the branch name contains "analysis"
14+ branches :
15+ - main
16+ - ' *analysis*'
17+ paths :
18+ - ' **'
19+ - ' !**.md'
20+ - ' !**.rst'
21+ - ' !**/ci.yml'
22+ - ' !**/docs.yml'
23+ - ' !**/scorecard.yml'
24+ - ' !**/wheel.yml'
25+ - ' !**.properties'
26+ - ' !docs/**'
27+ pull_request :
28+ branches :
29+ - ' *analysis*'
30+ # Allow manual kicking off of the workflow from github.com
31+ workflow_dispatch :
32+
33+ permissions : read-all
34+
35+ # Allow subsequent pushes to the same PR or REF to cancel any previous jobs.
36+ concurrency :
37+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
38+ cancel-in-progress : true
39+
40+ jobs :
41+ analysis :
42+ name : " SonarCloud Analysis"
43+ # Exclude runs on forks, since only the main org has the SonarCloud
44+ # account credentials.
45+ if : github.repository == 'AcademySoftwareFoundation/rawtoaces'
46+ secrets :
47+ PASSED_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ PASSED_SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
49+ strategy :
50+ fail-fast : false
51+ runs-on : ubuntu-latest
52+ container :
53+ image : aswf/ci-osl:2024-clang17.2
54+ env :
55+ CXX : g++
56+ CC : gcc
57+ steps :
58+ - name : Dependencies
59+ shell : bash
60+ run : |
61+ sudo yum install --setopt=tsflags=nodocs -y eigen3-devel ceres-solver-devel json-devel
62+
63+ - name : Configure CMake
64+ run : >
65+ cmake -B build -S .
66+ -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
67+ -D CMAKE_CXX_STANDARD=17
68+
69+ - name : Build
70+ run : |
71+ sudo cmake --build build
72+ sudo cmake --install build
73+
74+ - name : Test
75+ working-directory : build
76+ run : ctest --rerun-failed --output-on-failure
You can’t perform that action at this time.
0 commit comments