Skip to content

Merge pull request #59 from cmbsolutions/develop #96

Merge pull request #59 from cmbsolutions/develop

Merge pull request #59 from cmbsolutions/develop #96

Workflow file for this run

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@v6
- 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@v6
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@v6
with:
name: nppRandomStringGenerator.${{ env.version }}.x86
path: nppRandomStringGenerator\bin\Release\nppRandomStringGenerator.dll