Skip to content

Conversation

@bgianfo
Copy link
Contributor

@bgianfo bgianfo commented Aug 19, 2020

Add a simple workflow that builds x86 and x64 build architectures on push to master, or to validate pull requests.
It currently builds with MSVC:

  • x64
  • x86

It also runs CodeQL analysis with the build, so we can get further static analysis from the CodeQL rule-sets.

In order to get the code building in on the latest Windows Kit SDK, I had restrict the use of GetThreadLocale/SetThreadlocale
under WINVER guard, as the SDK headers introduced the same check.

I've also included a commit to disable more logo banners, as that seems to be the convention in the rest of the build.

Brian Gianforcaro and others added 3 commits August 19, 2020 03:29
In the 10.0.19041.0 SDK, the definitions for GetThreadLocale
and SetThreadLocale were moved under a #if(WINVER >= 0x0500)
check, where there was no such check before.

Adjust the detours build to have the same check, to avoid
consuming undeclared functions
Add a simple workflow that builds x86 and x64 build architecture on push to master,
or to validate pull requests before merge.
@bgianfo bgianfo force-pushed the initial-ci-workflow branch from 064dd3c to 26f0bff Compare August 19, 2020 10:36
@bgianfo bgianfo force-pushed the initial-ci-workflow branch from b5aabe7 to cba6344 Compare August 19, 2020 10:52
@bgianfo bgianfo requested a review from dtarditi August 19, 2020 11:20
Copy link
Contributor

@dtarditi dtarditi left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@bgianfo bgianfo merged commit c89449a into master Aug 19, 2020
@bgianfo bgianfo deleted the initial-ci-workflow branch August 19, 2020 23:43
HDESK (__stdcall * Real_GetThreadDesktop)(DWORD a0)
= GetThreadDesktop;

#if(WINVER >= 0x0500)
Copy link
Member

Choose a reason for hiding this comment

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

No need for parens.

Copy link
Member

Choose a reason for hiding this comment

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

Also, can declare the function yourself.
Assuming the import libs have no such filtering.
I'm not sure which is best. Versioning is an unsolved mess (except for just staying at head like some large orgs..)

@bgianfo bgianfo mentioned this pull request Aug 21, 2020
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.

4 participants