Skip to content

Commit

Permalink
Finally fix all github actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed Nov 25, 2024
1 parent 9d60a9c commit 3976fd7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci-cpu-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ jobs:
- name: Get cmake
uses: lukka/get-cmake@latest

- name: Install pkgconfig and zlib
run: |
choco install pkgconfiglite
vcpkg install zlib:x64-windows
vcpkg install zlib:x64-windows-static
- name: Configure
run: |
cd build
cmake .. -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True ${{ matrix.config }}
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT"/scripts/buildsystems/vcpkg.cmake -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True ${{ matrix.config }}
- name: Build
run: cmake --build build --parallel --config Release
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/ci-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,25 @@ jobs:
- name: Get cmake
uses: lukka/get-cmake@latest

- name: Install pkgconfig and zlib
if: ${{ matrix.os == 'windows-latest' }}
run: |
choco install pkgconfiglite
vcpkg install zlib:x64-windows
vcpkg install zlib:x64-windows-static
- name: Install OpenGL
if: ${{ matrix.os == 'ubuntu-22.04' }}
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: sudo apt-get install -y --no-install-recommends libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libgl1-mesa-dev libwayland-bin libwayland-dev wayland-protocols libxkbcommon-dev libxkbcommon-x11-0

- name: Configure
- name: Configure (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT"/scripts/buildsystems/vcpkg.cmake -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True -DPBRT_OPTIX7_PATH=../optix/${{ matrix.optix }} -DPBRT_GPU_SHADER_MODEL=sm_80
- name: Configure (Linux)
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
cd build
cmake .. -DPBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES=True -DPBRT_OPTIX7_PATH=../optix/${{ matrix.optix }} -DPBRT_GPU_SHADER_MODEL=sm_80
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ endfunction ()

check_ext ("OpenEXR" "openexr/OpenEXR" ca757f97033ae7cfcc6130f23c0e9ee86b108b07)
check_ext ("OpenVDB" "openvdb/nanovdb" 414bed84c2fc22e188eac7b611aa85c7edd7a5a9)
check_ext ("Ptex" "ptex/src" ba306d31270162649585123d48c827bd6309051f)
check_ext ("Ptex" "ptex/src" 054047d02b9e06e690420b407114d2872435b953)
check_ext ("double-conversion" "double-conversion/cmake" cc1f75a114aca8d2af69f73a5a959aecbab0e87a)
check_ext ("filesystem" "filesystem/filesystem" c5f9de30142453eb3c6fe991e82dfc2583373116)
check_ext ("glfw" "glfw/docs" 7b6aead9fb88b3623e3b3725ebb42670cbe4c579)
Expand Down
5 changes: 5 additions & 0 deletions src/pbrt/textures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

#include <Ptexture.h>

// Windows strikes again.
#ifdef RGB
#undef RGB
#endif

namespace pbrt {

std::string TextureEvalContext::ToString() const {
Expand Down

0 comments on commit 3976fd7

Please sign in to comment.