Limited number of cores on Github Actions

This commit is contained in:
Bartek Kryza
2021-10-03 18:24:21 +02:00
parent be7881b371
commit 7615d465f0
2 changed files with 5 additions and 2 deletions

View File

@@ -18,5 +18,5 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
- name: Build and unit test
run: |
make debug
NUMPROC=2 make debug
make test

View File

@@ -20,6 +20,8 @@
.DEFAULT_GOAL := debug
NUMPROC ?= $(shell nproc)
.PHONY: clean
clean:
rm -rf debug release
@@ -35,7 +37,8 @@ release/CMakeLists.txt:
-DCMAKE_BUILD_TYPE=Release
debug: debug/CMakeLists.txt
make -C debug -j
echo "Using ${NUMPROC} cores"
make -C debug -j$(NUMPROC)
release: release/CMakeLists.txt
make -C release -j