Skip to content

Commit

Permalink
workflows reverted to nproc w/o --all
Browse files Browse the repository at this point in the history
In vmware it prints 128 CPUs with --all :/
  • Loading branch information
silverqx committed Jun 12, 2024
1 parent 89f84ab commit a3facc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linux-qt5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# gcc: ~ 115 * 3 + 100 ; clang: ~ 90 * 3 + 100
TINY_CCACHE_MAX_SIZE_GCC: 450M
TINY_CCACHE_MAX_SIZE_CLANG: 380M
# Clang and vcpkg use $(nproc --all) (max. available cores)
# Clang and vcpkg use $(nproc) (max. available cores)
TINY_PARALLEL_GCC: 2

strategy:
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:
echo "TinyCcacheMaxSize=$ccacheMaxSize" >> $GITHUB_ENV
[[ '${{ matrix.compiler.key }}' == 'gcc' ]] && parallel=$TINY_PARALLEL_GCC \
|| parallel=$(nproc --all)
|| parallel=$(nproc)
echo "TinyParallel=$parallel" >> $GITHUB_ENV
echo "TinyParallelVcpkg=$(nproc --all)" >> $GITHUB_ENV
echo "TinyParallelVcpkg=$(nproc)" >> $GITHUB_ENV
env:
DB_SQLITE_DATABASE: ${{ secrets.DB_SQLITE_DATABASE }}

Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
- name: TinyORM execute ctest 🔥
working-directory: ../TinyORM-builds-cmake/build-${{ matrix.compiler.name }}-cmake-debug
run: |
ctest --output-on-failure --parallel $(($TinyParallel + $(nproc --all) / 2))
ctest --output-on-failure --parallel $(($TinyParallel + $(nproc) / 2))
env:
DB_MYSQL_CHARSET: ${{ secrets.DB_MYSQL_CHARSET }}
DB_MYSQL_COLLATION: ${{ secrets.DB_MYSQL_COLLATION }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linux-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# gcc: ~ 165 * 3 + 100 ; clang: ~ 100 * 3 + 100
TINY_CCACHE_MAX_SIZE_GCC: 600M
TINY_CCACHE_MAX_SIZE_CLANG: 400M
# Clang and vcpkg use $(nproc --all) (max. available cores)
# Clang and vcpkg use $(nproc) (max. available cores)
TINY_PARALLEL_GCC: 2

strategy:
Expand Down Expand Up @@ -67,10 +67,10 @@ jobs:
echo "TinyCcacheMaxSize=$ccacheMaxSize" >> $GITHUB_ENV
[[ '${{ matrix.compiler.key }}' == 'gcc' ]] && parallel=$TINY_PARALLEL_GCC \
|| parallel=$(nproc --all)
|| parallel=$(nproc)
echo "TinyParallel=$parallel" >> $GITHUB_ENV
echo "TinyParallelVcpkg=$(nproc --all)" >> $GITHUB_ENV
echo "TinyParallelVcpkg=$(nproc)" >> $GITHUB_ENV
env:
DB_SQLITE_DATABASE: ${{ secrets.DB_SQLITE_DATABASE }}

Expand Down Expand Up @@ -699,7 +699,7 @@ jobs:
- name: TinyORM execute ctest 🔥
working-directory: ../TinyORM-builds-cmake/build-${{ matrix.compiler.name }}-cmake-debug
run: |
ctest --output-on-failure --parallel $(($TinyParallel + $(nproc --all) / 2))
ctest --output-on-failure --parallel $(($TinyParallel + $(nproc) / 2))
env:
DB_MYSQL_CHARSET: ${{ secrets.DB_MYSQL_CHARSET }}
DB_MYSQL_COLLATION: ${{ secrets.DB_MYSQL_COLLATION }}
Expand Down

0 comments on commit a3facc7

Please sign in to comment.