diff --git a/.github/workflows/dotnet_provisioner_unit_tests.yml b/.github/workflows/dotnet_provisioner_unit_tests.yml index 0149f7a37..c35ea9181 100644 --- a/.github/workflows/dotnet_provisioner_unit_tests.yml +++ b/.github/workflows/dotnet_provisioner_unit_tests.yml @@ -80,6 +80,35 @@ jobs: fi echo "::set-output name=result::$result" more $logName + + - name: Install packaging tools + working-directory: HIRS_Provisioner.NET/hirs + run: | + dotnet tool install --global dotnet-deb + dotnet tool install --global dotnet-rpm + dotnet tool install --global wix + + - name: Run packaging tools + if: contains(matrix.os, 'ubuntu') + working-directory: HIRS_Provisioner.NET/hirs + run: | + dotnet deb -r linux-x64 -c Release + dotnet rpm -r linux-x64 -c Release + + - name: Run packaging tools + if: contains(matrix.os, 'windows') + working-directory: HIRS_Provisioner.NET/hirs + run: | + dotnet deb -r linux-x64 -c Release + dotnet rpm -r linux-x64 -c Release + dotnet build HIRS_Provisioner.NET.wixproj -r win-x64 -c Release + + - name: Setup tmate session on error + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 + timeout-minutes: 30 # The ssh session will be available for 2 minutes. + with: + limit-access-to-actor: true # Only the person who pushed can access- with a github-registered key. - name: Upload Logs Ubuntu uses: actions/upload-artifact@v2 diff --git a/HIRS_Provisioner.NET/hirs/Directory.Build.targets b/HIRS_Provisioner.NET/hirs/Directory.Build.targets index 6d1615f52..72b1c8a0c 100644 --- a/HIRS_Provisioner.NET/hirs/Directory.Build.targets +++ b/HIRS_Provisioner.NET/hirs/Directory.Build.targets @@ -12,19 +12,10 @@ - + - - - $(MSBuildThisFileDirectory)\Resources\Product.wxs - $(NuGetPackageRoot)wix\3.11.2\tools\ - $(WixInstallPath)heat.exe - $(WixInstallPath)candle.exe - $(WixInstallPath)light.exe - - diff --git a/HIRS_Provisioner.NET/hirs/HIRS_Provisioner.NET.wixproj b/HIRS_Provisioner.NET/hirs/HIRS_Provisioner.NET.wixproj new file mode 100644 index 000000000..271a6dae8 --- /dev/null +++ b/HIRS_Provisioner.NET/hirs/HIRS_Provisioner.NET.wixproj @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file