From 38799f33b7294e9088339b430b0689d3d0d3b3dd Mon Sep 17 00:00:00 2001 From: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> Date: Fri, 16 Jun 2023 22:26:54 -0700 Subject: [PATCH] Add MSI build and devenv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds msi and devenv to build the msi installer as vscode doesn’t support building directly from a visual studio code project from a vdproject using msbuild. So using devenv is needed to build it. For reference. https://github.com/actions/runner-images/issues/5301 Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com> --- .github/workflows/build.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 60470dc..74012d1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,9 @@ jobs: - name: Add MSBuild uses: microsoft/setup-msbuild@v1.0.2 + + - name: Setup VS Dev Environment + uses: seanmiddleditch/gha-setup-vsdevenv@v4 - name: Run get-source in Libimobiledevice-vs run: cd Dependencies/libimobiledevice-vs; ./get-source.cmd @@ -49,10 +52,17 @@ jobs: # run: cd "c:\vcpkg"; ./bootstrap-vcpkg.bat; vcpkg install --feature-flags=manifests,binarycaching,default-features,websockets --recurse openssl boost-regex:x64-windows dirent mdnsresponder winsparkle libiconv:x64-windows zlib:x64-windows; vcpkg integrate install run: cd "c:\vcpkg"; ./bootstrap-vcpkg.bat; vcpkg integrate install - - name: Build + - name: Build Project working-directory: ${{env.GITHUB_WORKSPACE}} run: | - msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}}; tree /f /a + msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}} + + - name: Disable Out of Process Building + run: .\DisableOutOfProcBuild.exe + working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild + + - name: Build .MSI + run: DevEnv AltInstaller/AltInstaller.vdproj /build Release; tree /f /a - name: Upload ZIP Artifact uses: actions/upload-artifact@v3.1.0