From 92cfe91502b21f6707d638ec4b8d1c590860a45e Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 29 Nov 2023 21:01:19 +0100 Subject: [PATCH] Update workflow --- .github/workflows/cross_compile.yml | 2 +- .github/workflows/macos_compile.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cross_compile.yml b/.github/workflows/cross_compile.yml index 96d07010..5f53f6e7 100644 --- a/.github/workflows/cross_compile.yml +++ b/.github/workflows/cross_compile.yml @@ -48,7 +48,7 @@ jobs: echo "debug_flag_filename=debug-" >> $GITHUB_ENV - name: Compile - run: make all -j 6 CONNECT_TYPE=${{ inputs.connect-type }} ${{ env.debug_flag_compile }} CROSS_COMPILE=arm-linux-gnueabihf- + run: make all -j -j $(nproc) CONNECT_TYPE=${{ inputs.connect-type }} ${{ env.debug_flag_compile }} CROSS_COMPILE=arm-linux-gnueabihf- # We need to tar the binary outputs to retain the executable # file permission. Currently, actions/upload-artifact only diff --git a/.github/workflows/macos_compile.yml b/.github/workflows/macos_compile.yml index 1645c890..616f275c 100644 --- a/.github/workflows/macos_compile.yml +++ b/.github/workflows/macos_compile.yml @@ -30,4 +30,4 @@ jobs: echo "debug_flag_filename=debug-" >> $GITHUB_ENV - name: Compile - run: make all -j 6 CONNECT_TYPE=${{ FULLSPEC }} ${{ env.debug_flag_compile }} + run: make all -j $(nproc) -DCONNECT_TYPE=FULLSPEC ${{ env.debug_flag_compile }}