add macos ci build
This commit is contained in:
5 files changed
+193
-9
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user