File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 2424
2525 steps :
2626 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
27+ # This isn't working currently, see https://github.com/actions/checkout/issues/1467.
28+ # Instead, get the git information manually with the step below.
29+ # with:
30+ # fetch-tags: true
31+
32+ - name : Refresh Git Information
33+ if : startsWith(github.ref, 'refs/tags/')
34+ shell : bash
35+ run : |
36+ git fetch --force --tags
37+ git checkout "${GITHUB_REF_NAME}"
2738
2839 - name : Create Build Directory
2940 run : cmake -E make_directory ./build
Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ static bool parseArguments(int argc, char *argv[])
583583 std::string defaultDumpDir = getDefaultDumpDirectory ();
584584 fprintf (stdout,
585585 " cliloader - A utility to simplify using the Intercept Layer for OpenCL Applications\n "
586- " Version: %s, from %s\n "
586+ " Version: %s%s %s\n "
587587 " \n "
588588 " Usage: cliloader [OPTIONS] COMMAND\n "
589589 " \n "
@@ -630,7 +630,8 @@ static bool parseArguments(int argc, char *argv[])
630630 " %s\n "
631631 " \n " ,
632632 g_scGitDescribe,
633- g_scGitRefSpec,
633+ strlen (g_scGitRefSpec) > 0 ? " , from " : " " ,
634+ strlen (g_scGitRefSpec) > 0 ? g_scGitRefSpec : " " ,
634635 defaultDumpDir.c_str (),
635636 g_scURL );
636637 return false ;
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ static bool parseArguments(int argc, char *argv[])
284284 {
285285 fprintf (stdout,
286286 " cliprof - A simple utility to enable profiling using the Intercept Layer for OpenCL Applications\n "
287- " Version: %s, from %s\n "
287+ " Version: %s%s %s\n "
288288 " \n "
289289 " Usage: cliprof [OPTIONS] COMMAND\n "
290290 " \n "
@@ -298,7 +298,8 @@ static bool parseArguments(int argc, char *argv[])
298298 " %s\n "
299299 " \n " ,
300300 g_scGitDescribe,
301- g_scGitRefSpec,
301+ strlen (g_scGitRefSpec) > 0 ? " , from " : " " ,
302+ strlen (g_scGitRefSpec) > 0 ? g_scGitRefSpec : " " ,
302303 g_scURL );
303304 return false ;
304305 }
You can’t perform that action at this time.
0 commit comments