Merge pull request #55 from cmbsolutions/develop #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| build_configuration: [Release] | |
| build_platform: [x64, x86] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v2.0.0 | |
| - name: Setup NuGet | |
| uses: nuget/setup-nuget@v2 | |
| - name: Nuget restore solution | |
| working-directory: nppRandomStringGenerator\ | |
| run: nuget restore nppRandomStringGenerator.sln | |
| - name: MSBuild of solution | |
| working-directory: nppRandomStringGenerator\ | |
| run: msbuild nppRandomStringGenerator.sln /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /m /verbosity:minimal | |
| - name: Extract DLL version x64 | |
| if: matrix.build_platform == 'x64' | |
| id: get_version_x64 | |
| shell: powershell | |
| run: | | |
| $dllPath = "nppRandomStringGenerator\bin\Release-x64\nppRandomStringGenerator.dll" | |
| $version = (Get-Item -Path $dllPath).VersionInfo.ProductVersion | |
| echo "version=$version" >> $env:GITHUB_ENV | |
| - name: Archive artifacts for x64 | |
| if: matrix.build_platform == 'x64' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: nppRandomStringGenerator.${{ env.version }}.x64 | |
| path: nppRandomStringGenerator\bin\Release-x64\nppRandomStringGenerator.dll | |
| - name: Extract DLL version x86 | |
| if: matrix.build_platform == 'x86' | |
| id: get_version_x86 | |
| shell: powershell | |
| run: | | |
| $dllPath = "nppRandomStringGenerator\bin\Release\nppRandomStringGenerator.dll" | |
| $version = (Get-Item -Path $dllPath).VersionInfo.ProductVersion | |
| echo "version=$version" >> $env:GITHUB_ENV | |
| - name: Archive artifacts for x86 | |
| if: matrix.build_platform == 'x86' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: nppRandomStringGenerator.${{ env.version }}.x86 | |
| path: nppRandomStringGenerator\bin\Release\nppRandomStringGenerator.dll | |