Skip to content
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

check-module-version: allow to change Tarantool version #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion check-module-version/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GitHub Action: Check module version

This action checks the equality of the version from Lua
This action checks the equality of the version from Lua
module's code and the repository tag that had triggered the workflow.
This action is supposed to work on tag push event only.

Expand All @@ -12,6 +12,8 @@ This action is supposed to work on tag push event only.
Executed before extracting the version value from _VERSION variable.
The hook code should not output to STDERR or STDOUT.
- `rock-make-opts` — the rock make options.
- `tarantool-version` - version of tarantool to be used in action.
Default is `2.10`.

## Example workflow:

Expand All @@ -34,6 +36,9 @@ jobs:
version-pre-extraction-hook: '...'
# Rock make options, e.g. STATIC_BUILD=ON.
rock-make-opts: '...'
# Tarantool version to be used in action.
# Default is '2.10'.
tarantool-version: '3.1'

package:
runs-on: ...
Expand Down
17 changes: 14 additions & 3 deletions check-module-version/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check module version
description: >
Сhecks the equality of the version from Lua
Checks the equality of the version from Lua
module's code and the repository tag that had triggered the workflow.
This action is supposed to work on tag push event only.

Expand All @@ -16,6 +16,10 @@ inputs:
description: Rock make options
required: false
default: ''
tarantool-version:
description: Tarantool version to be used in action
required: false
default: '2.10'

runs:
using: composite
Expand All @@ -28,10 +32,17 @@ runs:
- name: Setup tarantool
uses: tarantool/setup-tarantool@v3
with:
tarantool-version: '2.10'
tarantool-version: ${{ inputs.tarantool-version }}

- name: Setup tt
run: |
curl -L https://tarantool.io/XodVosJ/release/3/installer.sh | bash
sudo apt install -y tt
tt version
shell: bash

- name: Make rock
run: tarantoolctl rocks ${{ inputs.rock-make-opts }} make
run: tt rocks ${{ inputs.rock-make-opts }} make
shell: bash

- name: Check package version
Expand Down