Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor makefile and actions #565

Merged
merged 8 commits into from
Aug 13, 2024

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Aug 13, 2024

Simplifies the Makefile in the following ways:

  • Refactors the core commands build and test to be OS-conditional. When we detect Windows, we build and test against not just .NET 6.0 but also .NET Framework, the latter of which is Windows-only. This way a developer or consumer of the Makefile does not need to specify an OS-specific target (test-dotnet-framework vs test-dotnet-6)
  • Adds a make variable for building with gRPC web. The GitHub Actions tested against each OS, Framework, and with/without gRPC web. We make this easier by adding a GRPC_WEB variable. To build with gRPC web, run make GRPC_WEB=true build.
  • Includes logging options previously only in GitHub actions.
  • Refactors GitHub Actions to invoke the Makefile targets to build and test. When on Windows, build builds both .NET 6.0 and .NET Framework 4.62 targets; the same goes for when testing.
  • Moves PHONY declarations to the top for readability.

In an effort to make usage of the Makefile less error prone, we make
the core targets (all, build, test) conditionally build against .NET
Framework only when Windows is detected.
The GitHub actions run using grpc web and not using grpc web. We port
this logic to the Makefile by adding a make variable `GRPC_WEB`.
@malandis malandis requested a review from a team August 13, 2024 00:51
@malandis malandis marked this pull request as ready for review August 13, 2024 15:18
@malandis malandis merged commit cf6ce8d into main Aug 13, 2024
8 checks passed
@malandis malandis deleted the chore/refactor-makefile-and-actions branch August 13, 2024 23:02
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.

2 participants