Skip to content

Add workflows for building#4

Closed
EmJayGee wants to merge 1 commit into
mainfrom
micgrier/fixgsl
Closed

Add workflows for building#4
EmJayGee wants to merge 1 commit into
mainfrom
micgrier/fixgsl

Conversation

@EmJayGee

@EmJayGee EmJayGee commented Apr 18, 2025

Copy link
Copy Markdown
Collaborator

Add workflows for building on multiple platforms - msvc on Windows and clang on Ubuntu.

I tried to add gcc on Ubuntu but it has too many problems with user defined string literals and std::format / std::formatter<> specializations, I couldn't deal with all the problems.

@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@EmJayGee EmJayGee force-pushed the micgrier/fixgsl branch 9 times, most recently from 65f8425 to a5d4a11 Compare April 18, 2025 01:38

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to think of a better name for this.
What's next long_long_boring_workflow.yml? workflow128.yml?

@@ -0,0 +1,95 @@
# For most projects, this workflow file will not need changing; you simply need

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we inherit from a template workflow, instead of copy/paste? In ADO you can, and it is required there for compliance.

#include <string>
#include <string_view>

#ifndef __GNUG__

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please double check at some point, if clang defines this.

};

inline constexpr auto diagnostic_channel_name = L"diagnostic"_sl;
inline constexpr auto diagnostic_channel_name = L"diagnostic"sv;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you need inline here?
Isn't inline for non-const really?

Comment thread CMakeLists.txt
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_REPOSITORY https://github.com/google/googletest.git

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Googletest works, but GSL does not? Surprising.

Comment thread CMakeLists.txt Outdated
GIT_REPOSITORY "https://github.com/microsoft/GSL"
GIT_TAG "v4.1.0"
GIT_TAG "v4.2.0"
GIT_SHALLOW ON

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, or you did get it working?

@@ -0,0 +1,33 @@
on:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much boilerplate. Ugh. But I know, you are trying, so I approve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants