Skip to content

Commit

Permalink
correct version (#189)
Browse files Browse the repository at this point in the history
* use all tags(inc lightweight) for version

* set BUILD_NUMBER
  • Loading branch information
ekoby authored Nov 25, 2020
1 parent 505c141 commit f52f4b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
build:

runs-on: ${{ matrix.os }}
env:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}
strategy:
matrix:
os:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
build:

runs-on: ${{ matrix.os }}
env:
BUILD_NUMBER: ${{ github.GITHUB_RUN_NUMBER }}
strategy:
matrix:
os:
Expand Down
2 changes: 1 addition & 1 deletion git.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ endif()

# lookup most recent tag to derive version
execute_process(
COMMAND git describe HEAD
COMMAND git describe --tags HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_INFO
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand Down

0 comments on commit f52f4b9

Please sign in to comment.