mirror of https://github.com/encounter/SDL.git
ci: use Ninja generator in hop of accelerating the build
This commit is contained in:
parent
819b0143e3
commit
2e47016b01
|
@ -10,6 +10,10 @@ jobs:
|
||||||
- uses: mymindstorm/setup-emsdk@v10
|
- uses: mymindstorm/setup-emsdk@v10
|
||||||
with:
|
with:
|
||||||
version: 2.0.32
|
version: 2.0.32
|
||||||
|
- name: Install ninja
|
||||||
|
run: |
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get install -y ninja-build
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
emcmake cmake -S . -B build \
|
emcmake cmake -S . -B build \
|
||||||
|
@ -17,7 +21,8 @@ jobs:
|
||||||
-DSDL_TESTS=ON \
|
-DSDL_TESTS=ON \
|
||||||
-DSDL_INSTALL_TESTS=ON \
|
-DSDL_INSTALL_TESTS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=prefix
|
-DCMAKE_INSTALL_PREFIX=prefix \
|
||||||
|
-GNinja
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build/ --verbose
|
run: cmake --build build/ --verbose
|
||||||
- name: Run build-time tests
|
- name: Run build-time tests
|
||||||
|
|
Loading…
Reference in New Issue