Skip to content

Commit 4da62ce

Browse files
GitHuuuub
1 parent ed46e56 commit 4da62ce

4 files changed

Lines changed: 48 additions & 162 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/build-windows.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,17 @@ Windows and macOS
4343

4444
## Downloads
4545

46-
Latest builds are available as GitHub Actions artifacts:
46+
[![CI](https://github.com/serhii-rieznik/etx-tracer/workflows/CI/badge.svg)](https://github.com/serhii-rieznik/etx-tracer/actions)
4747

48-
### Latest Release Builds
49-
- **Windows**: [Download from Actions](https://github.com/serhii-rieznik/etx-tracer/actions/workflows/build-windows.yml) → Select latest run → Artifacts → `etx-tracer-windows`
50-
- **macOS**: [Download from Actions](https://github.com/serhii-rieznik/etx-tracer/actions/workflows/build-macos.yml) → Select latest run → Artifacts → `etx-tracer-macos`
48+
Latest automated builds are available as GitHub Actions artifacts:
5149

52-
### CI Builds (Automated)
53-
- **Windows**: [CI Workflow](https://github.com/serhii-rieznik/etx-tracer/actions/workflows/main.yml) → Latest run → Artifacts → `etx-tracer-Windows`
54-
- **macOS**: [CI Workflow](https://github.com/serhii-rieznik/etx-tracer/actions/workflows/main.yml) → Latest run → Artifacts → `etx-tracer-macOS`
50+
### How to Download
51+
1. Click the **CI badge** above or go to [Actions](https://github.com/serhii-rieznik/etx-tracer/actions)
52+
2. Select the latest **CI** workflow run
53+
3. Scroll to **Artifacts** section at the bottom
54+
4. Download the platform-specific archive:
55+
- `etx-tracer-Windows.zip` (Windows)
56+
- `etx-tracer-macOS.zip` (macOS)
5557

5658
### What's Included
5759
- Complete ray-tracer executable with all dependencies

0 commit comments

Comments
 (0)