From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 96D8E7037D; Thu, 11 Aug 2022 14:29:38 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 96D8E7037D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1660217378; bh=u06YCgGvzc4Jk6e6mjGk4e47niNOCbGhd3iMLlHsUa4=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=V+TyRmFkc/PFFO2UytbISn0WFapqkmF4xtb6cX9XQ0T4W/+lklDAMC2igfpMH3rLw V6Pv7LRZm3DHd90ibnO8rvOilGumVO+Rb6bP5d0oMK1e3JBTq/FLpY90VkCisFdiaL xrGj7SNnmIZOfdpqoknsepMo0CoefIfj/8a8VdgU= Received: from smtpng2.i.mail.ru (smtpng2.i.mail.ru [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 7906C71897 for ; Thu, 11 Aug 2022 14:27:40 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7906C71897 Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1oM6Lj-0002YE-Eo; Thu, 11 Aug 2022 14:27:39 +0300 To: Sergey Kaplun , Sergey Bronnikov Date: Thu, 11 Aug 2022 14:17:43 +0300 Message-Id: <9d4258549598fa5c11a4da1a40ca50cbb6281a16.1660216002.git.imun@tarantool.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9E6910A3ADAF35E02C796E2A9FAE7A70FF34819D73FE20D52182A05F5380850404C228DA9ACA6FE2785B705A0F531A38DA919C58C0E3B2E41BF234A986D4849733ECED6936A10A741 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7BF6702EC5472AA0FEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006377F69ABDCCC31D2058638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D813DEFFCE6838EA14FCD7CCB469528BFE117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCD0C25F7D68B3B8A1389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC82FFDA4F57982C5F4F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B569F1129A2C6445075ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C41E93BD56E7067354307CAA32FF218580205367B2BCC23E5B0D53CE0FDF8446B28329FE0B6AC8C886CFC4036BBF6A4EA9BF8C51168CD8EBDB73EEC7B84CCB0707EA2342758AE768C2AA817B2FB80CBF9EDBE8DEE28BC9005CE6337C64225B361F8859CA687ABA27BAB11570FF9FEDC408F6243E5BAF92C4E9589120F7DAE46353205367B2BCC23E5B01D2833353C8CBA3638A446BE3E5C627BF0CFE790FC11A7261332C5CB50AE517886A5961035A09600383DAD389E261318FB05168BE4CE3AF X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34197948450CB5442A63CA8A4CE61CFE57F5A05E38F0D984CA9DFDA969C47840CA47D23120B5AA05DF1D7E09C32AA3244C09E4C601A3550761950714D33134399EC3B3ADDA61883BB5927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojfXJM3siCnCmpofevprzMPQ== X-Mailru-Sender: 689FA8AB762F7393CC2E0F076E87284E897732F5D33C90FE98ACA50EDEB19EE5A7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 4/8] ci: use out of source build in GitHub Actions X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Use out of source build configuration for LuaJIT testing jobs in all GitHub workflows. For this build type configuration unique subdirectory (using GitHub run ID) within runner temporary directory is used as a binary artefacts tree. Signed-off-by: Igor Munkin --- .github/actions/environment/action.yml | 5 +++++ .github/workflows/lint.yml | 3 ++- .github/workflows/linux-aarch64.yml | 6 +++++- .github/workflows/linux-x86_64-ninja.yml | 6 +++++- .github/workflows/linux-x86_64.yml | 7 ++++++- .github/workflows/macos-m1.yml | 6 +++++- .github/workflows/macos-x86_64.yml | 7 ++++++- 7 files changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml index 43323bc7..7fb2625f 100644 --- a/.github/actions/environment/action.yml +++ b/.github/actions/environment/action.yml @@ -11,3 +11,8 @@ runs: NPROC=$(sysctl -n hw.logicalcpu 2>/dev/null || nproc) echo CMAKE_BUILD_PARALLEL_LEVEL=$(($NPROC + 1)) | tee -a $GITHUB_ENV shell: bash + - run: | + # Set BUILDDIR environment variable to specify LuaJIT + # build directory. + echo "BUILDDIR=${{ runner.temp }}/build-${{ github.run_id }}" | tee -a $GITHUB_ENV + shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 28dc6be6..64e8f992 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -45,6 +45,7 @@ jobs: sudo apt -y install cmake make lua5.1 luarocks sudo luarocks install luacheck - name: configure - run: cmake . + run: cmake -S . -B ${{ env.BUILDDIR }} - name: test run: cmake --build . --target LuaJIT-luacheck + working-directory: ${{ env.BUILDDIR }} diff --git a/.github/workflows/linux-aarch64.yml b/.github/workflows/linux-aarch64.yml index 8c8dcff1..21d86764 100644 --- a/.github/workflows/linux-aarch64.yml +++ b/.github/workflows/linux-aarch64.yml @@ -53,11 +53,15 @@ jobs: sudo apt -y update sudo apt -y install cmake gcc make perl - name: configure - run: cmake . ${{ matrix.CMAKEFLAGS }} + run: > + cmake -S . -B ${{ env.BUILDDIR }} + ${{ matrix.CMAKEFLAGS }} - name: build run: cmake --build . --parallel + working-directory: ${{ env.BUILDDIR }} - name: test run: cmake --build . --parallel --target test + working-directory: ${{ env.BUILDDIR }} test-tarantool-debug-w-GC64: name: Tarantool Debug GC64:ON diff --git a/.github/workflows/linux-x86_64-ninja.yml b/.github/workflows/linux-x86_64-ninja.yml index 2877d2f6..72d56d54 100644 --- a/.github/workflows/linux-x86_64-ninja.yml +++ b/.github/workflows/linux-x86_64-ninja.yml @@ -44,8 +44,12 @@ jobs: sudo apt -y update sudo apt -y install cmake gcc ninja-build perl - name: configure - run: cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja + run: > + cmake -S . -B ${{ env.BUILDDIR }} + -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja - name: build run: cmake --build . --parallel + working-directory: ${{ env.BUILDDIR }} - name: test run: cmake --build . --parallel --target test + working-directory: ${{ env.BUILDDIR }} diff --git a/.github/workflows/linux-x86_64.yml b/.github/workflows/linux-x86_64.yml index 44dcce98..4c3ad4c7 100644 --- a/.github/workflows/linux-x86_64.yml +++ b/.github/workflows/linux-x86_64.yml @@ -54,11 +54,16 @@ jobs: sudo apt -y update sudo apt -y install cmake gcc make perl - name: configure - run: cmake . ${{ matrix.CMAKEFLAGS }} -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} + run: > + cmake -S . -B ${{ env.BUILDDIR }} + ${{ matrix.CMAKEFLAGS }} + -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} - name: build run: cmake --build . --parallel + working-directory: ${{ env.BUILDDIR }} - name: test run: cmake --build . --parallel --target test + working-directory: ${{ env.BUILDDIR }} test-tarantool-debug-wo-GC64: name: Tarantool Debug GC64:OFF diff --git a/.github/workflows/macos-m1.yml b/.github/workflows/macos-m1.yml index e0269d60..e3b6dcda 100644 --- a/.github/workflows/macos-m1.yml +++ b/.github/workflows/macos-m1.yml @@ -68,11 +68,15 @@ jobs: ${ARCH} brew upgrade cmake gcc make perl ${ARCH} echo "CMAKE_BUILD_PARALLEL_LEVEL=$(($(sysctl -n hw.logicalcpu) + 1))" >> $GITHUB_ENV - name: configure - run: ${ARCH} cmake . ${{ matrix.CMAKEFLAGS }} + run: > + ${ARCH} cmake -S . -B ${{ env.BUILDDIR }} + ${{ matrix.CMAKEFLAGS }} - name: build run: ${ARCH} cmake --build . --parallel + working-directory: ${{ env.BUILDDIR }} - name: test run: ${ARCH} cmake --build . --parallel --target test + working-directory: ${{ env.BUILDDIR }} test-tarantool-debug-w-GC64: name: Tarantool Debug GC64:ON diff --git a/.github/workflows/macos-x86_64.yml b/.github/workflows/macos-x86_64.yml index 840806e3..3d2cf581 100644 --- a/.github/workflows/macos-x86_64.yml +++ b/.github/workflows/macos-x86_64.yml @@ -63,11 +63,16 @@ jobs: brew install --force cmake gcc make perl || brew upgrade cmake gcc make perl - name: configure - run: cmake . ${{ matrix.CMAKEFLAGS }} -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} + run: > + cmake -S . -B ${{ env.BUILDDIR }} + ${{ matrix.CMAKEFLAGS }} + -DLUAJIT_ENABLE_GC64=${{ matrix.GC64 }} - name: build run: cmake --build . --parallel + working-directory: ${{ env.BUILDDIR }} - name: test run: cmake --build . --parallel --target test + working-directory: ${{ env.BUILDDIR }} test-tarantool-debug-wo-GC64: name: Tarantool Debug GC64:OFF -- 2.34.0