Skip to content

Update main.yml - #2

Closed
AlexGoodmen wants to merge 1 commit into
mainfrom
AlexGoodmen-patch-4
Closed

Update main.yml#2
AlexGoodmen wants to merge 1 commit into
mainfrom
AlexGoodmen-patch-4

Conversation

@AlexGoodmen

Copy link
Copy Markdown
Owner

This ci is supposed to detect errors sooner and reduces the amount of code a developer needs to debug. Switch from Ubuntu to Windows since your environment is Windows-based.

Remove configure and make steps, as they are for Unix/Linux builds.

Use MSBuild (or devenv) to build .dsp or .sln projects.

Enable warnings as errors (/WX), full warnings (/W4), and treat warnings as errors in the build to fail early.

Add Code Analysis and Static Analysis steps.

Use fast-fail strategy in the CI workflow

Key Improvements:

✔ Windows Build: Uses windows-latest and MSBuild for DSP/Visual Studio projects. ✔ Early Error Detection:

/WX → Treat warnings as errors.

/W4 → Enable high-level warnings.
✔ Static Code Analysis: Runs Microsoft Code Analysis for better early bug detection. ✔ Fail Fast: Build will stop on first error or high-level warning. ✔ Supports Tests: Optional step to run unit/integration tests if you have them.

This ci is supposed to detect errors sooner and reduces the amount of code a developer needs to debug. 
Switch from Ubuntu to Windows since your environment is Windows-based.

Remove configure and make steps, as they are for Unix/Linux builds.

Use MSBuild (or devenv) to build .dsp or .sln projects.

Enable warnings as errors (/WX), full warnings (/W4), and treat warnings as errors in the build to fail early.

Add Code Analysis and Static Analysis steps.

Use fast-fail strategy in the CI workflow

Key Improvements:

✔ Windows Build: Uses windows-latest and MSBuild for DSP/Visual Studio projects.
✔ Early Error Detection:

/WX → Treat warnings as errors.

/W4 → Enable high-level warnings.
✔ Static Code Analysis: Runs Microsoft Code Analysis for better early bug detection.
✔ Fail Fast: Build will stop on first error or high-level warning.
✔ Supports Tests: Optional step to run unit/integration tests if you have them.
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.

1 participant