mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 13:26:28 +02:00
Specify which build preset to use.
This commit is contained in:
parent
e7928693bb
commit
3599c31107
3 changed files with 11 additions and 17 deletions
10
.github/workflows/master_build.yml
vendored
10
.github/workflows/master_build.yml
vendored
|
@ -34,6 +34,9 @@ env:
|
|||
# WIN-specific variables
|
||||
PreferredToolArchitecture: X64
|
||||
|
||||
# Specify build preset, since on Windows, `cmake --build` appears to be unaware of of which build preset to use, using defaults instead.
|
||||
CMAKE_BUILD_EXTRA: --preset conan-release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "${{matrix.os}}"
|
||||
|
@ -74,7 +77,7 @@ jobs:
|
|||
echo "CONAN_CPPSTD=gnu17" >> $GITHUB_ENV
|
||||
echo "PYTHON_EXEC=python3" >> $GITHUB_ENV
|
||||
echo "INSTALLER_EXT=tgz" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_EXTRA=-- -j$(nproc)" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_EXTRA=$CMAKE_BUILD_EXTRA -- -j$(nproc)" >> $GITHUB_ENV
|
||||
echo "CMAKE_EXTRA=-DOVERTE_CPU_ARCHITECTURE=-msse3 -DBUILD_TOOLS:BOOLEAN=FALSE -DHIFI_PYTHON_EXEC:FILEPATH=$(which python3)" >> $GITHUB_ENV
|
||||
fi
|
||||
# Mac build variables
|
||||
|
@ -210,27 +213,22 @@ jobs:
|
|||
run: cmake --preset conan-default -DCLIENT_ONLY:BOOLEAN=$CLIENT_ONLY -DBYPASS_SIGNING:BOOLEAN=TRUE $CMAKE_EXTRA
|
||||
|
||||
- name: Build application
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target $APP_TARGET_NAME $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build domain server
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target domain-server $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build assignment client
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target assignment-client $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build console
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target packaged-server-console $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build installer
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Retry code from https://unix.stackexchange.com/a/137639"
|
||||
|
|
10
.github/workflows/pr_build.yml
vendored
10
.github/workflows/pr_build.yml
vendored
|
@ -39,6 +39,9 @@ env:
|
|||
# Ensure XZ always runs with muticore support
|
||||
XZ_OPT: -T0
|
||||
|
||||
# Specify build preset, since on Windows, `cmake --build` appears to be unaware of of which build preset to use, using defaults instead.
|
||||
CMAKE_BUILD_EXTRA: --preset conan-release
|
||||
|
||||
jobs:
|
||||
build_pr:
|
||||
name: "${{matrix.os}}, ${{matrix.arch}}"
|
||||
|
@ -102,7 +105,7 @@ jobs:
|
|||
echo "CONAN_CPPSTD=gnu17" >> $GITHUB_ENV
|
||||
echo "PYTHON_EXEC=python3" >> $GITHUB_ENV
|
||||
echo "INSTALLER_EXT=*" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_EXTRA=-- -j$(nproc)" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_EXTRA=$CMAKE_BUILD_EXTRA -- -j$(nproc)" >> $GITHUB_ENV
|
||||
# Don't optimize builds to save build time.
|
||||
echo "OVERTE_OPTIMIZE=false" >> $GITHUB_ENV
|
||||
# Starting with Ubuntu 22.04 we can use system Qt
|
||||
|
@ -282,32 +285,27 @@ jobs:
|
|||
|
||||
- name: Build Application
|
||||
if: matrix.build_type == 'full' || matrix.build_type == 'client'
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: cmake --build . --target $APP_TARGET_NAME $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build Domain Server
|
||||
if: matrix.build_type == 'full'
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: cmake --build . --target domain-server $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build Assignment Client
|
||||
if: matrix.build_type == 'full'
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: cmake --build . --target assignment-client $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build Console
|
||||
if: matrix.build_type == 'full' && matrix.arch != 'aarch64' || startsWith(matrix.os, 'windows')
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: |
|
||||
cmake --build . --target packaged-server-console $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build Installer
|
||||
if: matrix.build_type != 'android' && matrix.arch != 'aarch64'
|
||||
working-directory: build
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Retry code from https://unix.stackexchange.com/a/137639"
|
||||
|
|
8
.github/workflows/release_build.yml
vendored
8
.github/workflows/release_build.yml
vendored
|
@ -30,6 +30,9 @@ env:
|
|||
# WIN-specific variables
|
||||
PreferredToolArchitecture: X64
|
||||
|
||||
# Specify build preset, since on Windows, `cmake --build` appears to be unaware of of which build preset to use, using defaults instead.
|
||||
CMAKE_BUILD_EXTRA: --preset conan-release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "${{matrix.os}}"
|
||||
|
@ -131,27 +134,22 @@ jobs:
|
|||
run: cmake --preset conan-${BUILD_TYPE,,} -DJSDOC_ENABLED:BOOL=TRUE -DCLIENT_ONLY:BOOLEAN=$CLIENT_ONLY -DBYPASS_SIGNING:BOOLEAN=TRUE $CMAKE_EXTRA
|
||||
|
||||
- name: Build application
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target $APP_TARGET_NAME $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build domain server
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target domain-server $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build assignment client
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target assignment-client $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build console
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: cmake --build . --target packaged-server-console $CMAKE_BUILD_EXTRA
|
||||
|
||||
- name: Build installer
|
||||
working-directory: ${{runner.workspace}}/build
|
||||
shell: bash
|
||||
run: |
|
||||
echo "Retry code from https://unix.stackexchange.com/a/137639"
|
||||
|
|
Loading…
Reference in a new issue