Skip to content

ci: add pure cmake . && make build flow #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/fast_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- '2.7'
- '2.8'
- '2.10'
build_flow:
- 'cmake_and_make'
- 'luarocks'

runs-on: ubuntu-latest
steps:
Expand All @@ -36,5 +39,29 @@ jobs:
- name: Clone the module
uses: actions/checkout@v2

- run: tarantoolctl rocks make
- run: make -C build.luarocks/ ARGS=-VV test
# A developer of the module usually calls `cmake . && make`
# or something similar. Here we ensure that this build flow
# is fine.
#
# Debug is a default build type, so compiler warnings are
# interpreted as errors here.
- name: Build using cmake and run testing
run: |
cmake .
make
make ARGS=-VV test
if: matrix.build_flow == 'cmake_and_make'

# A user usually calls `tarantoolctl rocks install
# <module_name> [<version>]`. Here we imitate this build
# flow using `tarantoolctl rocks make`, which is like the
# former, but uses a locally cloned repository.
#
# RelWithDebInfo build type is used under the hood, so
# compiler warnings are just warnings: they do not fail the
# build.
- name: Build using luarocks and run testing
run: |
tarantoolctl rocks make
make -C build.luarocks/ ARGS=-VV test
if: matrix.build_flow == 'luarocks'