Skip to content

Commit a31ef9d

Browse files
authored
Merge branch 'main' into python_cibuildwheels
2 parents cc1ea30 + 3baab41 commit a31ef9d

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

.github/workflows/analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ jobs:
5151
# account credentials.
5252
if: github.repository == 'AcademySoftwareFoundation/OpenImageIO'
5353
uses: ./.github/workflows/build-steps.yml
54-
# Must let the called steps workflow inherit our secrets
55-
secrets: inherit
54+
# Must let the called steps workflow inherit necessary secrets
55+
secrets:
56+
PASSED_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
PASSED_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5658
with:
5759
nametag: ${{ matrix.nametag || 'unnamed!' }}
5860
runner: ${{ matrix.runner || 'ubuntu-latest' }}

.github/workflows/build-steps.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ on:
6464
type: string
6565
nametag:
6666
type: string
67+
secrets:
68+
PASSED_GITHUB_TOKEN:
69+
required: false
70+
PASSED_SONAR_TOKEN:
71+
required: false
6772

6873
permissions: read-all
6974

@@ -145,8 +150,8 @@ jobs:
145150
- name: Sonar-scanner
146151
if: inputs.sonar == 1
147152
env:
148-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
153+
GITHUB_TOKEN: ${{ secrets.PASSED_GITHUB_TOKEN }}
154+
SONAR_TOKEN: ${{ secrets.PASSED_SONAR_TOKEN }}
150155
run: |
151156
which sonar-scanner
152157
ls -l /__w/OpenImageIO/OpenImageIO/bw_output

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ jobs:
588588
runner: windows-2019
589589
vsver: 2019
590590
generator: "Visual Studio 16 2019"
591-
python_ver: 3.7
591+
python_ver: "3.9"
592592
- desc: Windows-2022 VS2022
593593
runner: windows-2022
594594
vsver: 2022

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
1919
CMake configuration flag: `-DCMAKE_CXX_STANDARD=20`, etc.
2020
* Compilers: **gcc 9.3** - 14.2, **clang 5** - 19, MSVS 2017 - 2019 (**v19.14
2121
and up**), **Intel icc 19+**, Intel OneAPI C++ compiler 2022+.
22-
* **CMake >= 3.18.2** (tested through 3.30)
22+
* **CMake >= 3.18.2** (tested through 3.31)
2323
* **Imath >= 3.1** (tested through 3.1.x and main)
2424
* **OpenEXR >= 3.1** (tested through 3.3 and main)
2525
* **libTIFF >= 4.0** (tested through 4.7)

src/build-scripts/build_cmake.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -ex
1212
echo "Building cmake"
1313
uname
1414

15-
CMAKE_VERSION=${CMAKE_VERSION:=3.18.5}
15+
CMAKE_VERSION=${CMAKE_VERSION:=3.31.3}
1616
LOCAL_DEPS_DIR=${LOCAL_DEPS_DIR:=${PWD}/ext}
1717
CMAKE_INSTALL_DIR=${CMAKE_INSTALL_DIR:=${LOCAL_DEPS_DIR}/cmake}
1818

@@ -25,8 +25,8 @@ fi
2525

2626
if [[ `uname` == "Linux" && `uname -m` == "aarch64" ]] ; then
2727
mkdir -p ${CMAKE_INSTALL_DIR} || true
28-
curl --location https://anaconda.org/conda-forge/cmake/3.17.0/download/linux-aarch64/cmake-3.17.0-h28c56e5_0.tar.bz2 -o cmake-3.17.0-h28c56e5_0.tar.bz2
29-
tar -xjf cmake-3.17.0-h28c56e5_0.tar.bz2 -C ${CMAKE_INSTALL_DIR}
28+
curl --location "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-aarch64.sh" -o "cmake.sh"
29+
sh cmake.sh --skip-license --prefix=${CMAKE_INSTALL_DIR}
3030
export PATH=${CMAKE_INSTALL_DIR}/bin:$PATH
3131

3232
# In case we ever need to build from scratch:

src/cmake/modules/FindLibRaw.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if (LINKSTATIC)
9696
set (LibRaw_r_LIBRARIES ${LibRaw_r_LIBRARIES} ${LCMS2_LIBRARIES})
9797
endif()
9898
if (MSVC)
99-
set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} LIBRAW_NODLL)
100-
set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} LIBRAW_NODLL)
99+
set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} -D LIBRAW_NODLL)
100+
set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} -D LIBRAW_NODLL)
101101
endif()
102102
endif ()

0 commit comments

Comments
 (0)