Skip to content

Update sparkle-windows.xml #84

Update sparkle-windows.xml

Update sparkle-windows.xml #84

Workflow file for this run

name: MSBuild
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
env:
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
PROJECT_FILE_PATH: AltServer.sln
BUILD_PLATFORM: x86
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --force --recursive --init --remote
- name: Add MSBuild
uses: microsoft/[email protected]
- 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
- name: Cache vcpkg dir
id: cache-vcpkg-dir
uses: actions/cache@v3
env:
cache-name: cache-vcpkg-dir
with:
path: c:\vcpkg
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Intergrate vcpkg packages
working-directory: ${{env.GITHUB_WORKSPACE}}
# 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 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}}
- 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/[email protected]
with:
name: SideServer (With Debug Symbols)
path: ${{github.workspace}}\Win32\Release
- name: Upload Installer Artifact
uses: actions/[email protected]
with:
name: SideServer Installer
path: ${{github.workspace}}\AltInstaller\Release