Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 committed May 13, 2024
2 parents 698c712 + b5f017c commit 0799fc3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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}}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
[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)

0 comments on commit 0799fc3

Please sign in to comment.