Merge pull request #519 from gonsolo/unused2 #317
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: cpu-windows-build-and-test | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - 'images/**' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - 'images/**' | |
| jobs: | |
| build: | |
| name: Build and test | |
| strategy: | |
| matrix: | |
| config: [ '', '-DPBRT_DBG_LOGGING=True', '-DPBRT_FLOAT_AS_DOUBLE=True' ] | |
| fail-fast: false | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout pbrt | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Checkout rgb2spectrum tables | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: mmp/rgb2spectrum | |
| path: build | |
| - name: Get cmake | |
| uses: lukka/get-cmake@latest | |
| - name: Install pkgconfig | |
| run: | | |
| choco install pkgconfiglite | |
| - name: Configure | |
| run: | | |
| cd build | |
| 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 | |
| - name: Test | |
| if: ${{ matrix.config == '' }} | |
| run: .\Release\pbrt_test.exe | |
| working-directory: build |