add macos ci build

This commit is contained in:
Agel committed 2026-11-12 14:02:50 +01:00
1 parent cdd33bc60e
commit ff8ef105dd
5 files changed
+193 -9

No files matched your search

+14
View File
@@ -96,6 +96,7 @@ ctest --test-dir build --output-on-failure
### macOS Build Environment
```bash
scripts/install-deps-macos.sh
export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig:$PKG_CONFIG_PATH"
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
@@ -103,6 +104,19 @@ cmake -B build -G Ninja \
cmake --build build --parallel
ctest --test-dir build --output-on-failure
```
> If Homebrew package updates (e.g. `minizip`) invalidate cached Cellar paths, add `--fresh` (`cmake --fresh -B build ...` or `cmake --fresh --preset debug`) to reconfigure with a clean cache.
Packaging:
```bash
packaging/package-macos.sh build /opt/qt/6.10.3/macos dist
```
Local GitLab Runner (shell executor):
```bash
# First-time registration
RUNNER_TOKEN="glrt-..." scripts/start-runner-macos.sh
# Subsequent runs
scripts/start-runner-macos.sh
```
### VS Code & CMake Presets
Pre-configured tasks, launch configurations, and CMake presets are available: