@@ -141,20 +141,47 @@ jobs:
141141 exit 1
142142 fi
143143
144- - name : Prepare library directory
144+ - name : Prepare library directory (Windows)
145+ if : runner.os == 'Windows'
146+ shell : pwsh
147+ run : |
148+ Write-Host "Ensuring bin/lib directory exists..."
149+ New-Item -ItemType Directory -Path "bin/lib" -Force | Out-Null
150+ Write-Host "Library directory contents:"
151+ Get-ChildItem "bin/lib/" -Force
152+
153+ - name : Prepare library directory (macOS)
154+ if : runner.os == 'macOS'
145155 run : |
146156 echo "Ensuring bin/lib directory exists..."
147157 mkdir -p bin/lib
148158 echo "Library directory contents:"
149159 ls -la bin/lib/ || true
150160
151- - name : Configure CMake
161+ - name : Configure CMake (Windows)
162+ if : runner.os == 'Windows'
163+ shell : pwsh
164+ run : |
165+ New-Item -ItemType Directory -Path "build" -Force | Out-Null
166+ Set-Location build
167+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
168+
169+ - name : Configure CMake (macOS)
170+ if : runner.os == 'macOS'
152171 run : |
153172 mkdir build
154173 cd build
155174 cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0
156175
157- - name : Build dependencies
176+ - name : Build dependencies (Windows)
177+ if : runner.os == 'Windows'
178+ shell : pwsh
179+ run : |
180+ Set-Location build
181+ cmake --build . --config Release --parallel --target etx-core etx-render etx-rt etx-util
182+
183+ - name : Build dependencies (macOS)
184+ if : runner.os == 'macOS'
158185 run : |
159186 cd build
160187 cmake --build . --config Release --parallel --target etx-core etx-render etx-rt etx-util
@@ -167,7 +194,15 @@ jobs:
167194 echo "Checking Embree architecture..."
168195 file /opt/homebrew/lib/libembree4.dylib 2>/dev/null || echo "Embree not found"
169196
170- - name : Build raytracer
197+ - name : Build raytracer (Windows)
198+ if : runner.os == 'Windows'
199+ shell : pwsh
200+ run : |
201+ Set-Location build
202+ cmake --build . --config Release --target raytracer --verbose
203+
204+ - name : Build raytracer (macOS)
205+ if : runner.os == 'macOS'
171206 run : |
172207 cd build
173208 cmake --build . --config Release --target raytracer --verbose
0 commit comments