File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1414 # Run on pushes only to main or if the branch name contains "analysis"
1515 branches :
1616 - main
17+ - dev-3.0
1718 - ' *analysis*'
1819 - ' *sonar*'
1920 paths :
2021 - ' **'
2122 - ' !**.md'
2223 - ' !**.rst'
23- - ' !**/analysis .yml'
24+ - ' !**/ci .yml'
2425 - ' !**/docs.yml'
2526 - ' !**.properties'
2627 - ' !docs/**'
28+ # Run analysis on PRs only if the branch name indicates that the purpose of
29+ # the PR is related to the Sonar analysis. We don't run on every PR because
30+ # the analysis run is very expensive and just isn't usually necessary.
31+ pull_request :
32+ branches :
33+ - ' *analysis*'
34+ - ' *sonar*'
2735 # Allow manual kicking off of the workflow from github.com
2836 workflow_dispatch :
29- # Uncomment the following line if we want to run analysis on all PRs:
30- # pull_request:
3137
3238permissions : read-all
3339
4551 # account credentials.
4652 if : github.repository == 'AcademySoftwareFoundation/OpenImageIO'
4753 uses : ./.github/workflows/build-steps.yml
54+ # Must let the called steps workflow inherit our secrets
55+ secrets : inherit
4856 with :
4957 nametag : ${{ matrix.nametag || 'unnamed!' }}
5058 runner : ${{ matrix.runner || 'ubuntu-latest' }}
7583 fail-fast : false
7684 matrix :
7785 include :
78- - desc : sonar gcc9 /C++14 py39 exr3.1 ocio2.2
86+ - desc : sonar gcc11 /C++17 py310 exr3.2 ocio2.3
7987 nametag : static-analysis-sonar
8088 os : ubuntu-latest
8189 container : aswf/ci-osl:2024-clang17
9098 setenvs : export SONAR_SERVER_URL="https://sonarcloud.io"
9199 BUILD_WRAPPER_OUT_DIR=/__w/OpenImageIO/OpenImageIO/bw_output
92100 OIIO_CMAKE_BUILD_WRAPPER="build-wrapper-linux-x86-64 --out-dir /__w/OpenImageIO/OpenImageIO/bw_output"
93- CMAKE_BUILD_TYPE =Debug
101+ OIIO_CMAKE_BUILD_TYPE =Debug
94102 CMAKE_UNITY_BUILD=OFF
95103 CODECOV=1
96104 CTEST_TEST_TIMEOUT=1200
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ sonar.host.url=https://sonarcloud.io
66# Required metadata
77sonar.organization =academysoftwarefoundation
88sonar.projectName =OpenImageIO
9- sonar.projectVersion =2.6
9+ sonar.projectVersion =3.1
1010sonar.projectKey =AcademySoftwareFoundation_OpenImageIO
1111
1212# Project links
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ OIIO_CMAKE_FLAGS="$MY_CMAKE_FLAGS $OIIO_CMAKE_FLAGS"
1212export OIIO_SRC_DIR=${OIIO_SRC_DIR:= $PWD }
1313export OIIO_BUILD_DIR=${OIIO_BUILD_DIR:= ${OIIO_SRC_DIR} / build}
1414export OIIO_INSTALL_DIR=${OIIO_INSTALL_DIR:= ${OIIO_SRC_DIR} / dist}
15+ export OIIO_CMAKE_BUILD_TYPE=${OIIO_CMAKE_BUILD_TYPE:= ${CMAKE_BUILD_TYPE:= Release} }
1516
1617if [[ " $USE_SIMD " != " " ]] ; then
1718 OIIO_CMAKE_FLAGS=" $OIIO_CMAKE_FLAGS -DUSE_SIMD=$USE_SIMD "
3233
3334# pushd $OIIO_BUILD_DIR
3435cmake -S $OIIO_SRC_DIR -B $OIIO_BUILD_DIR -G " $CMAKE_GENERATOR " \
35- -DCMAKE_BUILD_TYPE=" ${CMAKE_BUILD_TYPE } " \
36+ -DCMAKE_BUILD_TYPE=" ${OIIO_CMAKE_BUILD_TYPE } " \
3637 -DCMAKE_PREFIX_PATH=" $CMAKE_PREFIX_PATH " \
3738 -DCMAKE_INSTALL_PREFIX=" $OpenImageIO_ROOT " \
3839 -DPYTHON_VERSION=" $PYTHON_VERSION " \
You can’t perform that action at this time.
0 commit comments