Skip to content
Snippets Groups Projects
Commit b884ecef authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Pack only on tag pipelines

parent c31446bf
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ code_quality:
only:
- main
- merge_requests
- tags
tags:
- docker
script:
......@@ -45,6 +46,7 @@ linux:build:
only:
- main
- merge_requests
- tags
stage: build
tags:
......@@ -73,6 +75,7 @@ linux:test:
only:
- main
- merge_requests
- tags
stage: test
tags:
......@@ -93,6 +96,7 @@ linux:valgrind:
only:
- main
- merge_requests
- tags
stage: test
tags:
......@@ -111,7 +115,7 @@ linux:valgrind:
linux:pack:
only:
- main
- tags
stage: pack
tags:
......@@ -135,6 +139,7 @@ windows:build:
only:
- main
- merge_requests
- tags
stage: build
tags:
......@@ -162,6 +167,7 @@ windows:test:
only:
- main
- merge_requests
- tags
stage: test
......@@ -181,7 +187,7 @@ windows:test:
windows:pack:
only:
- main
- tags
stage: pack
......
......@@ -3,7 +3,7 @@ include (CheckIncludeFile)
include (CheckIncludeFileCXX)
include (CheckFunctionExists)
if (NOT FTL_VERSION)
if (NOT FTL_VERSION OR FTL_VERSION STREQUAL "%CI_COMMIT_TAG%")
set(FTL_VERSION 0.0.1)
endif()
......
#include <ftl/protocol/config.h>
const char *FTL_BRANCH = "main";
const char *FTL_VERSION_LONG = "";
const char *FTL_VERSION = "";
const int FTL_VERSION_MAJOR = 0;
const int FTL_VERSION_MINOR = 0;
const int FTL_VERSION_PATCH = 0;
const int FTL_VERSION_COMMITS = 0;
const char *FTL_VERSION_SHA1 = "";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment