style(gpu_app): format desktop_gpu_main.c using clang-format #20
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: macOS Build | |
| on: | |
| push: | |
| branches: [ "master", "main" ] | |
| pull_request: | |
| branches: [ "master", "main" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-macos: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| engine: [CPU, GPU] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| brew install sdl2 sdl2_ttf pkg-config | |
| - name: Build Engine | |
| run: | | |
| cmake -S . -B build_${{ matrix.engine }} -DCMAKE_BUILD_TYPE=Release -DBUILD_${{ matrix.engine }}=ON | |
| cmake --build build_${{ matrix.engine }} --parallel | |
| - name: Run Tests | |
| working-directory: ./build_${{ matrix.engine }} | |
| run: ctest --output-on-failure | |
| - name: Run Benchmarks | |
| working-directory: ./build_${{ matrix.engine }} | |
| run: | | |
| echo "## 📊 Performance Benchmarks (${{ matrix.engine }})" >> $GITHUB_STEP_SUMMARY | |
| echo "\`\`\`text" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ matrix.engine }}" == "CPU" ]; then | |
| echo "=== Math Kernel Benchmark ===" >> $GITHUB_STEP_SUMMARY | |
| ./benchmarks/benchmark_math >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "=== Renderer Benchmark ===" >> $GITHUB_STEP_SUMMARY | |
| ./benchmarks/benchmark_renderer >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "=== GPU Renderer Benchmark ===" >> $GITHUB_STEP_SUMMARY | |
| ./benchmarks/benchmark_gpu >> $GITHUB_STEP_SUMMARY || echo "GPU Benchmark skipped or failed" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mandelbrot-macos-${{ matrix.engine }} | |
| path: build_${{ matrix.engine }}/mandelbrot_* |