diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf0952e..e7e13e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -385,11 +385,10 @@ jobs: with: usesh: true prepare: | - pkg_add cmake + pkg_add cmake gmake run: | - cmake -B build - cmake --build build -j $(sysctl -n hw.ncpu) - ./build/qjs -qd + gmake + gmake stats freebsd: runs-on: ubuntu-latest @@ -400,8 +399,7 @@ jobs: with: usesh: true prepare: | - pkg install -y cmake + pkg install -y cmake gmake run: | - cmake -B build - cmake --build build -j $(sysctl -n hw.ncpu) - ./build/qjs -qd + gmake + gmake stats diff --git a/Makefile b/Makefile index d2d2354..8cfc758 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,20 @@ BUILD_DIR=build BUILD_TYPE?=Release -JOBS?=$(shell getconf _NPROCESSORS_ONLN) QJS=$(BUILD_DIR)/qjs RUN262=$(BUILD_DIR)/run-test262 +JOBS?=$(shell getconf _NPROCESSORS_ONLN) +ifeq ($(JOBS),) +JOBS := $(shell sysctl -n hw.ncpu) +endif +ifeq ($(JOBS),) +JOBS := $(shell nproc) +endif +ifeq ($(JOBS),) +JOBS := 4 +endif all: $(QJS)