[Tarantool-patches] [PATCH luajit 4/8] ci: use out of source build in GitHub Actions
Igor Munkin
imun at tarantool.org
Wed Aug 31 18:33:43 MSK 2022
Sergey,
Thanks for your review!
On 15.08.22, Sergey Bronnikov wrote:
> Igor, please see my comment below.
>
> On 11.08.2022 14:17, Igor Munkin wrote:
> > 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 <imun at tarantool.org>
> > ---
> > .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(-)
> >
<snipped>
> > 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 }}
>
> 1. I don't get an idea to use current dir for CMake and specify a
> working-directory in a job step.
>
> Why not "cmake --build ${{ env.BUILDDIR }}" as above?
I tried to not touch the original command. Configuration step can't be
left intact, but build and test -- can and that makes diff more clear
(IMHO). Furhermore, it looks more explicit to me: the command is run in
the current directory, and the current directory is specified
separately from the command itself.
>
> >
> > test-tarantool-debug-w-GC64:
> > name: Tarantool Debug GC64:ON
<snipped>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list