From 37160e5ebda40febfbdf6e8059d590fd5d3b5a97 Mon Sep 17 00:00:00 2001 From: Michael Brunner <71121348+Brunner246@users.noreply.github.com> Date: Mon, 13 May 2024 11:17:47 +0200 Subject: [PATCH 1/2] Create msbuild.yml --- .github/workflows/msbuild.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..065e584 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,34 @@ +name: MSBuild + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + SOLUTION_FILE_PATH: ./modulesTest.sln + + # Configuration type to build. + # You can convert this to a build matrix if you need coverage of multiple configuration types. + # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + # Add additional options to the MSBuild command line here (like platform or verbosity level). + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 8bde6ea9ff7920021dccde1f427cdbd5e8f40bd2 Mon Sep 17 00:00:00 2001 From: Michael Brunner <71121348+Brunner246@users.noreply.github.com> Date: Mon, 13 May 2024 11:29:17 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 86cc9c7..1167ee7 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,6 @@ `Project properties -> C/C++ -> Command Line opition -> Add /reference "path to DLL project\x64\Debug\test.modules.ixx.ifc"` -[microsoft developer forum](https://learn.microsoft.com/en-us/answers/questions/1665106/how-to-use-c-20-modules-in-shared-libraries?page=1&orderby=Helpful&comment=answer-1517573#newest-answer-comment) \ No newline at end of file +[microsoft developer forum](https://learn.microsoft.com/en-us/answers/questions/1665106/how-to-use-c-20-modules-in-shared-libraries?page=1&orderby=Helpful&comment=answer-1517573#newest-answer-comment) + +[/reference compiler flag](https://learn.microsoft.com/en-us/cpp/build/reference/module-reference?view=msvc-170)