1 name: Build with VS Studio
16 runs-on: windows-latest
20 configuration: ['Debug', 'Release']
21 platform: ['x86', 'x64']
25 uses: actions/checkout@v3
30 - name: Set up Visual Studio
31 uses: microsoft/setup-msbuild@v1.1
33 - name: Build static solution
35 git fetch --tags --force # Retrieve annotated tags. #issue 290
36 msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu-static-link.sln
38 - name: Upload Build Artifacts
39 if: matrix.configuration == 'Release' && matrix.platform == 'x64'
40 uses: actions/upload-artifact@v3
43 path: msvc/x64/Release/uuu.exe
45 - name: Create or Update Release
46 if: matrix.configuration == 'Release' && matrix.platform == 'x64' && ${{ github.ref_type }} == 'tag'
47 uses: ncipollo/release-action@v1
49 name: Release ${{ github.ref_name }}
50 tag: ${{ github.ref_name }}
51 commit: ${{ github.sha }}
54 artifacts: msvc/x64/Release/uuu.exe
56 - name: Build dynamic solution
57 run: msbuild /p:Configuration=${{ matrix.configuration }} /p:PlatformToolset=v143 /p:Platform=${{ matrix.platform }} msvc/uuu.sln