From 1ac3580a8be5e6a05194a28ddb93209ec6e5d585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 19 Mar 2023 15:15:26 +0100 Subject: [PATCH] CI: Define JOBS environment variable and use it for make --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae83753679..e52ab6e02e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ env: CCACHE_COMPRESS: true CCACHE_MAXSIZE: 1G PYTHON: python3 + JOBS: 2 DEBUG: 0 jobs: @@ -87,17 +88,17 @@ jobs: - name: Build run: | cd _build - make + make -j ${{ env.JOBS }} - name: Run Tests run: | cd _build - make -j2 check + make -j ${{ env.JOBS }} check - name: Run distcheck run: | cd _build - make -j2 distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; + make -j ${{ env.JOBS }} distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_FLAGS"; - name: ccache statistics run: ccache --show-stats