File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -479,11 +479,12 @@ extension Array where Element == PackageDescription.CXXSetting {
479
479
result. append ( . define( " SWT_TESTING_LIBRARY_COMMIT_HASH " , to: #"" \#( git. currentCommit) ""# ) )
480
480
if git. hasUncommittedChanges {
481
481
result. append ( . define( " SWT_TESTING_LIBRARY_COMMIT_MODIFIED " , to: " 1 " ) )
482
- } else if let gitHubSHA = Context . environment [ " GITHUB_SHA " ] {
483
- // When building in GitHub Actions, the git command may fail to get us the
484
- // commit hash, so check if GitHub shared it with us instead.
485
- result. append ( . define( " SWT_TESTING_LIBRARY_COMMIT_HASH " , to: #"" \#( gitHubSHA) ""# ) )
486
482
}
483
+ } else if let gitHubSHA = Context . environment [ " GITHUB_SHA " ] {
484
+ // When building in GitHub Actions, the git command may fail to get us the
485
+ // commit hash, so check if GitHub shared it with us instead.
486
+ result. append ( . define( " SWT_TESTING_LIBRARY_VERSION " , to: " 0 " ) )
487
+ result. append ( . define( " SWT_TESTING_LIBRARY_COMMIT_HASH " , to: #"" \#( gitHubSHA) ""# ) )
487
488
}
488
489
489
490
return result
You can’t perform that action at this time.
0 commit comments