Skip to content

Commit 45b5c0d

Browse files
committed
Change msbuild.yml
1 parent 422aeb6 commit 45b5c0d

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,17 @@ jobs:
3030
runs-on: windows-latest
3131

3232
steps:
33-
- uses: actions/checkout@v4
34-
35-
- name: Add MSBuild to PATH
33+
- name: Checkout repository (with submodules)
34+
uses: actions/checkout@v4
35+
with:
36+
# fetch submodules (recursively) so ../ujson exists for the project
37+
submodules: 'recursive'
38+
# ensure full history for submodules if needed
39+
fetch-depth: 0
40+
# use the default token so private submodules from the same host are fetched
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Add MSBuild to PATH
3644
uses: microsoft/setup-msbuild@v1.0.2
3745

3846
#- name: Restore NuGet packages
@@ -43,4 +51,4 @@ jobs:
4351
working-directory: ${{env.GITHUB_WORKSPACE}}
4452
# Add additional options to the MSBuild command line here (like platform or verbosity level).
4553
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
46-
run: msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} ${{ env.PLATFORM && format('/p:Platform={0}', env.PLATFORM) || '' }}
54+
run: msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }}

0 commit comments

Comments
 (0)