ci: use parallel build, only build server

This commit is contained in:
Lion Kortlepel 2022-05-23 17:30:23 +02:00
parent 634955660d
commit d8e974429d
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
4 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build-linux
shell: bash
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server --parallel
- name: Archive artifacts
uses: actions/upload-artifact@v2

View File

@ -48,7 +48,7 @@ jobs:
working-directory: ${{github.workspace}}/build-windows
shell: bash
run: |
cmake --build . --config Debug
cmake --build . --config Debug -t BeamMP-Server --parallel
- name: Archive debug artifacts
uses: actions/upload-artifact@v2

View File

@ -57,7 +57,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build-linux
shell: bash
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server --parallel
- name: Upload Release Asset
id: upload-release-asset
@ -101,7 +101,7 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build-windows
shell: bash
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config $BUILD_TYPE -t BeamMP-Server --parallel
- name: Upload Release Asset
id: upload-release-asset

1
deps/CMakeLists.txt vendored
View File

@ -4,3 +4,4 @@ include_directories("${PROJECT_SOURCE_DIR}/deps/commandline")
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/commandline")
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/fmt")
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/sol2")