mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-26 04:31:34 +08:00
Parallelize github build workflow
This commit is contained in:
parent
4b9b0635c4
commit
5e1af6bb69
13
.github/workflows/build.yaml
vendored
13
.github/workflows/build.yaml
vendored
@ -39,6 +39,10 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get number of CPU cores
|
||||||
|
uses: SimenB/github-actions-cpu-cores@v1
|
||||||
|
id: cpu-cores
|
||||||
|
|
||||||
- name: "Checkout repository"
|
- name: "Checkout repository"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -49,7 +53,7 @@ jobs:
|
|||||||
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
|
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
|
||||||
cmake: true
|
cmake: true
|
||||||
ninja: true
|
ninja: true
|
||||||
clangtidy: true
|
clangtidy: false
|
||||||
cppcheck: false
|
cppcheck: false
|
||||||
gcovr: "5.0"
|
gcovr: "5.0"
|
||||||
opencppcoverage: true
|
opencppcoverage: true
|
||||||
@ -61,6 +65,7 @@ jobs:
|
|||||||
cmake -S .
|
cmake -S .
|
||||||
-B ./build
|
-B ./build
|
||||||
-DCMAKE_BUILD_TYPE:STRING=Debug
|
-DCMAKE_BUILD_TYPE:STRING=Debug
|
||||||
|
-DCMAKE_BUILD_PARALLEL_LEVEL=${{ steps.cpu-cores.outputs.count }}
|
||||||
-DFTXUI_ENABLE_COVERAGE:BOOL=ON
|
-DFTXUI_ENABLE_COVERAGE:BOOL=ON
|
||||||
-DFTXUI_BUILD_DOCS:BOOL=OFF
|
-DFTXUI_BUILD_DOCS:BOOL=OFF
|
||||||
-DFTXUI_BUILD_EXAMPLES:BOOL=ON
|
-DFTXUI_BUILD_EXAMPLES:BOOL=ON
|
||||||
@ -144,6 +149,10 @@ jobs:
|
|||||||
asset_path: build/ftxui*Win64*
|
asset_path: build/ftxui*Win64*
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get number of CPU cores
|
||||||
|
uses: SimenB/github-actions-cpu-cores@v1
|
||||||
|
id: cpu-cores
|
||||||
|
|
||||||
- name: "Checkout repository"
|
- name: "Checkout repository"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -156,12 +165,14 @@ jobs:
|
|||||||
cd build;
|
cd build;
|
||||||
cmake ..
|
cmake ..
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
|
-DCMAKE_BUILD_PARALLEL_LEVEL=${{ steps.cpu-cores.outputs.count }}
|
||||||
-DFTXUI_BUILD_DOCS=OFF
|
-DFTXUI_BUILD_DOCS=OFF
|
||||||
-DFTXUI_BUILD_EXAMPLES=OFF
|
-DFTXUI_BUILD_EXAMPLES=OFF
|
||||||
-DFTXUI_BUILD_TESTS=OFF
|
-DFTXUI_BUILD_TESTS=OFF
|
||||||
-DFTXUI_BUILD_TESTS_FUZZER=OFF
|
-DFTXUI_BUILD_TESTS_FUZZER=OFF
|
||||||
-DFTXUI_ENABLE_INSTALL=ON;
|
-DFTXUI_ENABLE_INSTALL=ON;
|
||||||
cmake --build . --target package;
|
cmake --build . --target package;
|
||||||
|
|
||||||
- uses: shogo82148/actions-upload-release-asset@v1
|
- uses: shogo82148/actions-upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.11)
|
cmake_minimum_required(VERSION 3.12)
|
||||||
|
|
||||||
project(ftxui
|
project(ftxui
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
|
Loading…
Reference in New Issue
Block a user