From d08c53d756c68e2b5ead13b9df46eb228a969758 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 3 Jul 2026 08:48:41 +1000 Subject: [PATCH] Remove stale WGPU mac workflow Drop the obsolete diagnostic macOS WGPU workflow that referenced removed standalone viewer paths and targets.\n\nGenerated with the assistance of an AI coding tool. --- .github/workflows/ci-wgpu-mac.yml | 123 ------------------------------ 1 file changed, 123 deletions(-) delete mode 100644 .github/workflows/ci-wgpu-mac.yml diff --git a/.github/workflows/ci-wgpu-mac.yml b/.github/workflows/ci-wgpu-mac.yml deleted file mode 100644 index c868f76b83..0000000000 --- a/.github/workflows/ci-wgpu-mac.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: wgpu sanity (macOS) - -# Lightweight compile-only check for the wgpu backend on macOS. Skips the -# IfcViewerWgpuMinimal executable (its surface creation has no Metal path -# yet — see task #32) and just confirms IfcViewerWgpu links and the pure- -# CPU state tests pass. -# -# Goal: catch portability regressions in the wgpu source on Apple Silicon -# / Intel Mac without needing the full IfcGeom + OCCT + Python toolchain -# that build_osx.yml carries. Runs in ~5 minutes. - -on: - push: - branches: - - ifcviewer-wgpu - - main - - v0.8.0 - paths: - - 'src/ifcviewer-wgpu/**' - - 'src/ifcviewer-wgpu-minimal/**' - - 'src/wgpu-mem-probe/**' - - 'src/ifcviewer/SidecarCache.*' - - 'src/ifcviewer/InstancedGeometry.h' - - 'src/ifcviewer/VertexQuantization.h' - - 'cmake/CMakeLists.txt' - - '.github/workflows/ci-wgpu-mac.yml' - pull_request: - paths: - - 'src/ifcviewer-wgpu/**' - - 'src/ifcviewer-wgpu-minimal/**' - - 'src/wgpu-mem-probe/**' - - 'src/ifcviewer/SidecarCache.*' - - 'src/ifcviewer/InstancedGeometry.h' - - 'src/ifcviewer/VertexQuantization.h' - - 'cmake/CMakeLists.txt' - - '.github/workflows/ci-wgpu-mac.yml' - workflow_dispatch: - -jobs: - build_wgpu_mac: - runs-on: ${{ matrix.runner }} - strategy: - fail-fast: false - matrix: - include: - - arch: arm64 - runner: macos-14 - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: false - - - name: Install dependencies via Homebrew - run: | - brew update - # qt installs Qt6; eigen is header-only. Boost is required by - # the top-level CMakeLists unconditionally (line 328) even when - # IfcGeom/IfcPython are off — until ifcviewer-core is extracted - # (task #12) we have to humour it. - brew install qt eigen boost - # patchelf isn't on mac — wgpu-native's SONAME workaround is - # Linux-only and CMake guards on UNIX AND NOT APPLE so this is fine. - - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2.22 - with: - key: mac-wgpu-${{ matrix.arch }} - - - name: Configure (standalone wgpu, tests on) - shell: bash - # The top-level CMakeLists.txt unconditionally find_package's - # CGAL/OpenCASCADE/etc. before our BUILD_BONSAIVIEWER gate kicks - # in, so we explicitly disable every IfcGeom/IfcParse/IfcPython - # subproject — we only want IfcViewerWgpu + its state tests. - run: | - QT_PREFIX="$(brew --prefix qt)" - cmake -B build \ - -S cmake \ - -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_BONSAIVIEWER=OFF \ - -DBUILD_BONSAIVIEWER_WGPU=ON \ - -DBUILD_BONSAIVIEWER_TESTS=ON \ - -DBUILD_IFCGEOM=OFF \ - -DBUILD_IFCPYTHON=OFF \ - -DBUILD_CONVERT=OFF \ - -DBUILD_EXAMPLES=OFF \ - -DBUILD_GEOMSERVER=OFF \ - -DWITH_OPENCASCADE=OFF \ - -DWITH_CGAL=OFF \ - -DCOLLADA_SUPPORT=OFF \ - -DCMAKE_PREFIX_PATH="${QT_PREFIX}" \ - -DQT_DIR="${QT_PREFIX}" \ - -DCMAKE_C_COMPILER_LAUNCHER=ccache \ - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache - - - name: Build IfcViewerWgpu + state tests - # Skip IfcViewerWgpuMinimal: its createSurface has no Metal path - # yet (task #32). Static lib compiles cleanly because the X11 / - # Wayland surface blocks are wrapped in #if defined(Q_OS_LINUX). - # No `-- -j N`: Ninja parallelises by default (it rejects bare - # `-j` unlike make). - run: | - cmake --build build \ - --target IfcViewerWgpu test_wgpu_selection test_wgpu_visibility - - - name: Run state tests - working-directory: build - # No -R filter: only wgpu state tests are built in this config, - # so ctest discovers exactly those. - run: ctest --output-on-failure - - - name: Upload CMake configure log on failure - if: failure() - uses: actions/upload-artifact@v4 - with: - name: cmake-log-${{ matrix.arch }} - path: | - build/CMakeCache.txt - build/CMakeFiles/CMakeConfigureLog.yaml - retention-days: 14