Skip to content

Commit 1708f76

Browse files
Update build.yml
1 parent 1deb64b commit 1708f76

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
config: [Release, Debug]
39-
platform: [x64, x86]
39+
platform:
40+
- name: x64
41+
msvc-platform-name: x64
42+
- name: x86
43+
msvc-platform-name: Win32
4044
runs-on: windows-latest
4145

4246
steps:
@@ -83,7 +87,7 @@ jobs:
8387
with:
8488
vs-version: '17'
8589

86-
- name: Building ${{matrix.platform}}-${{matrix.config}}
90+
- name: Building ${{matrix.platform.name}}-${{matrix.config}}
8791
working-directory: ${{env.GITHUB_WORKSPACE}}
8892
# Add additional options to the MSBuild command line here (like platform or verbosity level).
8993
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
@@ -94,13 +98,13 @@ jobs:
9498
9599
env
96100
97-
msbuild /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}}
101+
msbuild /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform.name}} ${{env.SOLUTION_FILE_PATH}}
98102
99103
- name: Upload Build outputs
100104
uses: actions/upload-artifact@v4
101105
with:
102-
name: ${{ env.PROJECT_NAME }}-Server-${{ matrix.config }}-${{ matrix.platform }}
103-
path: ${{ env.SOLUTION_DIR }}\${{ matrix.config }}\${{ matrix.platform }}
106+
name: ${{ env.PROJECT_NAME }}-Server-${{ matrix.config }}-${{ matrix.platform.name }}
107+
path: ${{ env.SOLUTION_DIR }}\${{ matrix.config }}\${{ matrix.platform.msvc-platform-name }}
104108

105109
Build_APK:
106110
name: Build Android APK

0 commit comments

Comments
 (0)