Use Xcode for macOS builds

This commit is contained in:
Alexander Batalov 2023-04-28 00:13:29 +03:00
parent fcf8a87603
commit 5b485e9632
1 changed files with 8 additions and 3 deletions

View File

@ -213,23 +213,28 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: build path: build
key: macos-cmake-v3 key: macos-cmake-v4
- name: Configure - name: Configure
run: | run: |
cmake \ cmake \
-B build \ -B build \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \ -G Xcode \
# EOL # EOL
- name: Build - name: Build
run: | run: |
cmake \ cmake \
--build build \ --build build \
--config RelWithDebInfo \
-j $(sysctl -n hw.physicalcpu) \ -j $(sysctl -n hw.physicalcpu) \
--target package \
# EOL # EOL
- name: Pack
run: |
cd build
cpack -C RelWithDebInfo
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: