diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0a2db10..7551813 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -36,6 +36,14 @@ jobs: echo "Checking dependency versions..." cmake --version qmake --version || echo "QMake found via brew" + + - name: Patch for macOS (Remove librt) + run: | + echo "Patching src/CMakeLists.txt to remove Linux-only 'rt' library..." + # Use sed to find " rt " and replace it with a space. + # The -i '' is required for macOS sed to edit in-place. + sed -i '' 's/ rt / /g' src/CMakeLists.txt + sed -i '' 's/ rt)/ )/g' src/CMakeLists.txt - name: Build macOS run: |