From d8e974429d480471d4b3006146e7301ca562ecd4 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 23 May 2022 17:30:23 +0200 Subject: [PATCH] ci: use parallel build, only build server --- .github/workflows/cmake-linux.yml | 2 +- .github/workflows/cmake-windows.yml | 2 +- .github/workflows/release-build.yml | 4 ++-- deps/CMakeLists.txt | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake-linux.yml b/.github/workflows/cmake-linux.yml index 3ddf653..7ee1dfa 100644 --- a/.github/workflows/cmake-linux.yml +++ b/.github/workflows/cmake-linux.yml @@ -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 diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index b882766..99fec78 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -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 diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 2f8e3f3..54f2ee3 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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 diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index c4d4ce4..da47d97 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -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")