Skip to content

Commit

Permalink
Merge 897a519 into 1979089
Browse files Browse the repository at this point in the history
  • Loading branch information
GRISHNOV authored Mar 7, 2023
2 parents 1979089 + 897a519 commit ec94479
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ on:
- '*'

jobs:
version-check:
runs-on: ubuntu-20.04
steps:
- name: Check module version
uses: tarantool/actions/check-module-version@igrishnov/gh-204-add-hardcoded-versioning-support
with:
module-name: 'http.server'

package:
runs-on: ubuntu-latest
needs: version-check

strategy:
fail-fast: false
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ on:
tags: ['*']

jobs:
version-check:
runs-on: ubuntu-20.04
steps:
- name: Check module version
uses: tarantool/actions/check-module-version@igrishnov/gh-204-add-hardcoded-versioning-support
with:
module-name: 'http.server'

publish-scm-1:
if: github.ref == 'refs/heads/master'
needs: version-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,6 +27,7 @@ jobs:

publish-tag:
if: startsWith(github.ref, 'refs/tags/')
needs: version-check
runs-on: ubuntu-latest
steps:
# Create a source tarball for the release (.src.rock).
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

- Add versioning support.

## [1.4.0] - 2022-12-30

### Added
Expand Down
1 change: 1 addition & 0 deletions http/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ set_target_properties(httpd
# Install
install(TARGETS httpd LIBRARY DESTINATION ${TARANTOOL_INSTALL_LIBDIR}/http)
install(FILES server.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/http)
install(FILES version.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/http)
install(FILES mime_types.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/http)
install(FILES codes.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/http)
1 change: 1 addition & 0 deletions http/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@ local function httpd_start(self)
end

local exports = {
_VERSION = require('http.version'),
DETACHED = DETACHED,

new = function(host, port, options)
Expand Down
4 changes: 4 additions & 0 deletions http/version.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Сontains the module version.
-- Requires manual update in case of release commit.

return '1.4.0'

0 comments on commit ec94479

Please sign in to comment.