Updated CI pipeline build for MacOS

dev
Tomasz Kapuściński 2023-08-13 22:36:13 +02:00
parent 840ded7e61
commit fd81641cf7
2 changed files with 21 additions and 4 deletions

View File

@ -98,12 +98,10 @@ jobs:
- name: Create build directory
run: cmake -E make_directory build
- name: Run CMake (for Mac)
working-directory: build
run: cmake -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEV_BUILD=1 -DPORTABLE=1 -DTESTS=1 -DDESKTOP=1 -DOPENAL_LIBRARY=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/OpenAL.tbd ..
run: cmake --preset MacOS-CI
if: matrix.target_os == 'macos'
- name: Build
working-directory: build
run: make -j `nproc`
run: cmake --build --preset MacOS-CI
- name: Run tests
# TODO: Maybe run Windows tests using wine as well?
working-directory: build

View File

@ -47,6 +47,20 @@
"TESTS": true,
"DESKTOP": true
}
},
{
"name": "MacOS-CI",
"description": "MacOS configuration for CI pipeline",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_SKIP_INSTALL_RPATH": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"DEV_BUILD": true,
"PORTABLE": true,
"TESTS": true,
"DESKTOP": true,
"OPENAL_LIBRARY": "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/OpenAL.tbd"
}
}
],
"buildPresets": [
@ -59,6 +73,11 @@
"name": "Linux-CI",
"configurePreset": "Linux-CI",
"configuration": "RelWithDebInfo"
},
{
"name": "MacOS-CI",
"configurePreset": "MacOS-CI",
"configuration": "RelWithDebInfo"
}
]
}