-Clear project timestamp if git was not used/found
-Add git as a runner tool for versioning
This commit is contained in:
parent
a5aab6afd9
commit
a6d1985742
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
# setup base required dependencies
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib
|
||||
sudo apt-get install cmake ninja-build python3-pyelftools python3-regex python3-polib git
|
||||
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- name: Checkout ${{ github.event.pull_request.head.ref }}
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ else()
|
|||
MESSAGE(STATUS "Git was not found or an error occurred parsing the tag. Falling back to Configuration.h values (${PROJECT_VERSION}).")
|
||||
endif()
|
||||
set(FW_COMMIT_HASH "0") # Clear it, the code expects a binary...
|
||||
set(PROJECT_VERSION_TIMESTAMP "0")
|
||||
set(PROJECT_VERSION_FULL "v${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_REV}-${PROJECT_VERSION_FLV}${PROJECT_VERSION_FLV_VER}-${PROJECT_VERSION_COMMIT}")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue