From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Kaplun <skaplun@tarantool.org>, Sergey Bronnikov <sergeyb@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH luajit 1/3] ci: fix --parallel argument for MacOS runners Date: Wed, 22 Jun 2022 18:33:12 +0300 [thread overview] Message-ID: <024281fade12f71b734aece21637ea09c11bc759.1655911291.git.imun@tarantool.org> (raw) In-Reply-To: <cover.1655911291.git.imun@tarantool.org> In scope of the commit 4195eb8f7e2abcf75f92eedd2859b7991cc8b363 ("ci: make GitHub workflows more CMake-ish") --parallel value has been explicitly set to $(nproc) + 1, since -j default behaviour differs for Ninja and GnuMake. However, MacOS lacks nproc command, but CI silently continues to execute pipeline. This patch fixed MacOS-specific workflows changing nproc command with sysctl -n hw.ncpu. Signed-off-by: Igor Munkin <imun@tarantool.org> --- .github/workflows/macos-m1.yml | 4 ++-- .github/workflows/macos-x86_64.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos-m1.yml b/.github/workflows/macos-m1.yml index 8387bbcf..d1d144f0 100644 --- a/.github/workflows/macos-m1.yml +++ b/.github/workflows/macos-m1.yml @@ -68,6 +68,6 @@ jobs: - name: configure run: ${ARCH} cmake . ${{ matrix.CMAKEFLAGS }} -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} - name: build - run: ${ARCH} cmake --build . --parallel $(($(nproc) + 1)) + run: ${ARCH} cmake --build . --parallel $(($(sysctl -n hw.ncpu) + 1)) - name: test - run: ${ARCH} cmake --build . --parallel $(($(nproc) + 1)) --target test + run: ${ARCH} cmake --build . --parallel $(($(sysctl -n hw.ncpu) + 1)) --target test diff --git a/.github/workflows/macos-x86_64.yml b/.github/workflows/macos-x86_64.yml index 2ab2c8d0..a7c2f4e3 100644 --- a/.github/workflows/macos-x86_64.yml +++ b/.github/workflows/macos-x86_64.yml @@ -63,6 +63,6 @@ jobs: - name: configure run: cmake . ${{ matrix.CMAKEFLAGS }} -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} - name: build - run: cmake --build . --parallel $(($(nproc) + 1)) + run: cmake --build . --parallel $(($(sysctl -n hw.ncpu) + 1)) - name: test - run: cmake --build . --parallel $(($(nproc) + 1)) --target test + run: cmake --build . --parallel $(($(sysctl -n hw.ncpu) + 1)) --target test -- 2.34.0
next prev parent reply other threads:[~2022-06-22 15:40 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-22 15:33 [Tarantool-patches] [PATCH luajit 0/3] Integration testing and tiny fixes in CI Igor Munkin via Tarantool-patches 2022-06-22 15:33 ` Igor Munkin via Tarantool-patches [this message] 2022-06-23 8:19 ` [Tarantool-patches] [PATCH luajit 1/3] ci: fix --parallel argument for MacOS runners Sergey Kaplun via Tarantool-patches 2022-06-29 22:17 ` Igor Munkin via Tarantool-patches 2022-07-01 13:12 ` Sergey Bronnikov via Tarantool-patches 2022-07-04 7:05 ` Igor Munkin via Tarantool-patches 2022-07-05 17:20 ` Sergey Bronnikov via Tarantool-patches 2022-07-05 21:25 ` Igor Munkin via Tarantool-patches 2022-06-22 15:33 ` [Tarantool-patches] [PATCH luajit 2/3] ci: remove GC64 matrix entries for ARM64 workflows Igor Munkin via Tarantool-patches 2022-06-23 8:29 ` Sergey Kaplun via Tarantool-patches 2022-06-29 22:17 ` Igor Munkin via Tarantool-patches 2022-07-01 13:21 ` Sergey Bronnikov via Tarantool-patches 2022-07-04 7:05 ` Igor Munkin via Tarantool-patches 2022-06-22 15:33 ` [Tarantool-patches] [PATCH luajit 3/3] ci: add Tarantool integration testing Igor Munkin via Tarantool-patches 2022-06-23 8:45 ` Sergey Kaplun via Tarantool-patches 2022-06-29 22:17 ` Igor Munkin via Tarantool-patches 2022-07-04 10:24 ` Sergey Kaplun via Tarantool-patches 2022-07-01 13:39 ` Sergey Bronnikov via Tarantool-patches 2022-07-04 7:07 ` Igor Munkin via Tarantool-patches 2022-07-04 10:09 ` Sergey Bronnikov via Tarantool-patches 2022-07-13 10:09 ` [Tarantool-patches] [PATCH luajit 0/3] Integration testing and tiny fixes in CI Igor Munkin via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=024281fade12f71b734aece21637ea09c11bc759.1655911291.git.imun@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit 1/3] ci: fix --parallel argument for MacOS runners' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox