From 4cf6bd629e326ad10c5e1a077d3892498e6ac4b8 Mon Sep 17 00:00:00 2001 From: Mergen Imeev Date: Fri, 20 Mar 2026 11:07:02 +0300 Subject: [PATCH 1/2] cmake: throw a warning if luatest is not found After this patch, a warning will be issued instead of a fatal error if Luatest is not found. Luatest is only required to run tests. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 103650e..2844c56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ endif() find_program(LUATEST_BIN luatest) if(NOT LUATEST_BIN) - message(FATAL_ERROR "luatest not found in PATH") + message(WARNING "luatest not found in PATH") endif() # Set CFLAGS From 8011c746bdf4cd35c86d7890be8ccc4874cc5fe6 Mon Sep 17 00:00:00 2001 From: Mergen Imeev Date: Tue, 17 Mar 2026 18:05:25 +0300 Subject: [PATCH 2/2] Publish rockspeck After this patch, rockspec will be pushed to `rocks.tarantool.org` with every commit to the master branch and with every tag. --- .github/workflows/publish.yaml | 33 +++++++++++++++++++++++++++++++++ cv-scm-1.rockspec | 6 +++--- 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..9c87e90 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,33 @@ +name: publish + +on: + push: + branches: + - master + tags: + - '**' + +jobs: + publish-master: + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-20.04-self-hosted + steps: + - uses: actions/checkout@v4 + - uses: tarantool/rocks.tarantool.org/github-action@master + with: + auth: ${{ secrets.ROCKS_AUTH }} + files: cv-scm-1.rockspec + + publish-tag: + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-20.04-self-hosted + steps: + - uses: actions/checkout@v4 + - run: | + export GIT_TAG=${GITHUB_REF#refs/*/} + echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV + sed -e "s/branch = \".\+\"/tag = \"$GIT_TAG\"/g" -e "s/version = '.\+'/version = \"$GIT_TAG-1\"/g" cv-scm-1.rockspec > cv-$GIT_TAG-1.rockspec + - uses: tarantool/rocks.tarantool.org/github-action@master + with: + auth: ${{ secrets.ROCKS_AUTH }} + files: cv-${{ env.GIT_TAG }}-1.rockspec diff --git a/cv-scm-1.rockspec b/cv-scm-1.rockspec index 0b95a86..15c109c 100644 --- a/cv-scm-1.rockspec +++ b/cv-scm-1.rockspec @@ -2,8 +2,8 @@ package = 'cv' version = 'scm-1' source = { - url = 'git+https://github.com/unera/cv.git'; - branch = 'main'; + url = "git+ssh://git@github.com:tarantool/c-validator.git", + branch = 'master'; } description = { @@ -18,7 +18,7 @@ Supports: maps, arrays, oneof, rename, defaults, transforms, constraints, uuid, tuple, int64/uint64, box.NULL, and OpenAPI 3.1 schema serialization. ]]; - homepage = 'https://github.com/unera/cv'; + homepage = 'https://github.com/tarantool/c-validator'; license = 'BSD-2-Clause'; }