@@ -97,11 +97,21 @@ jobs:
9797 if : matrix.platform == 'macos-latest'
9898 run : |
9999 brew install libomp
100+ # Ensure git is available in build context
101+ git config --global --add safe.directory '*'
100102 # Install OpenMP for better performance on macOS builds
101103
102104 - name : install frontend dependencies
103105 run : npm ci # Using npm ci for more reliable builds
104106
107+ - name : verify git repository status
108+ run : |
109+ echo "Git repository status:"
110+ pwd
111+ git status --porcelain || echo "Git status failed"
112+ git log --oneline -1 || echo "Git log failed"
113+ echo "Git directory: $(git rev-parse --show-toplevel 2>/dev/null || echo 'Not found')"
114+
105115 - uses : tauri-apps/tauri-action@v0
106116 env :
107117 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -116,11 +126,20 @@ jobs:
116126 CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER : " clang"
117127 # Ensure git context is available for build info
118128 GIT_DISCOVERY_ACROSS_FILESYSTEMS : " 1"
119- # CMake parallel build optimization
129+ GIT_CEILING_DIRECTORIES : " /"
130+ # CMake configuration
120131 CMAKE_BUILD_PARALLEL_LEVEL : " 2"
132+ CMAKE_C_COMPILER : " ${{ matrix.platform == 'macos-latest' && 'clang' || '' }}"
133+ CMAKE_CXX_COMPILER : " ${{ matrix.platform == 'macos-latest' && 'clang++' || '' }}"
121134 # macOS OpenMP support (when using Homebrew libomp)
122- LDFLAGS : " ${{ matrix.platform == 'macos-latest' && '-L/opt/homebrew/lib' || '' }}"
123- CPPFLAGS : " ${{ matrix.platform == 'macos-latest' && '-I/opt/homebrew/include' || '' }}"
135+ LDFLAGS : " ${{ matrix.platform == 'macos-latest' && '-L/opt/homebrew/lib -L/usr/local/lib' || '' }}"
136+ CPPFLAGS : " ${{ matrix.platform == 'macos-latest' && '-I/opt/homebrew/include -I/usr/local/include' || '' }}"
137+ CMAKE_PREFIX_PATH : " ${{ matrix.platform == 'macos-latest' && '/opt/homebrew:/usr/local' || '' }}"
138+ OpenMP_C_FLAGS : " ${{ matrix.platform == 'macos-latest' && '-Xpreprocessor -fopenmp' || '' }}"
139+ OpenMP_CXX_FLAGS : " ${{ matrix.platform == 'macos-latest' && '-Xpreprocessor -fopenmp' || '' }}"
140+ OpenMP_C_LIB_NAMES : " ${{ matrix.platform == 'macos-latest' && 'omp' || '' }}"
141+ OpenMP_CXX_LIB_NAMES : " ${{ matrix.platform == 'macos-latest' && 'omp' || '' }}"
142+ OpenMP_omp_LIBRARY : " ${{ matrix.platform == 'macos-latest' && '/opt/homebrew/lib/libomp.dylib' || '' }}"
124143 with :
125144 releaseId : ${{ needs.create-release.outputs.release_id }}
126145 args : ${{ matrix.args }}
0 commit comments