Skip to content

Finish IInitializeWithWindowHelper example #52

Finish IInitializeWithWindowHelper example

Finish IInitializeWithWindowHelper example #52

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build example Release_ARM
on:
push:
branches: [ "master", "ci" ]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
permissions:
contents: write
jobs:
build_Release_ARM:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
# Build highlight
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install highlight dependencies
working-directory: Highlight
run: bun install
- name: Build highlight
working-directory: Highlight
run: bun run build-only
- name: Copy to project directory
run: copy Highlight\dist\index.html WinUI3Example\Monaco.html
- name: Set up vcpkg
working-directory: ${{env.VCPKG_INSTALLATION_ROOT}}
run: vcpkg integrate install
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=Release_CI2 /p:Platform=ARM ${{env.SOLUTION_FILE_PATH}} -p:GenerateAppxPackageOnBuild=true -p:AppxPackageSigningEnabled=true -p:UapAppxPackageBuildMode=SideloadOnly -p:PackageCertificateKeyFile="${{github.workspace}}\UWPExample\UWPExample_TemporaryKey.pfx" -p:PackageCertificatePassword=""
- name: Copy SideloadReadme
run: copy SideloadReadme.md AppPackages\SideloadReadme.md
- name: Zip Archive
working-directory: ${{env.GITHUB_WORKSPACE}}
run: Compress-Archive -Path "AppPackages" -DestinationPath "WinUIEssential.Example(ARM).zip"
shell: pwsh
- name: Set tag
id: set-tag
run: |
$out = Get-Date -format "yyyy.MM.dd.HH"
echo tag=$out >> $env:GITHUB_OUTPUT
- name: Release
env:
tag: ${{steps.set-tag.outputs.tag}}
uses: softprops/action-gh-release@v2
with:
files: WinUIEssential.Example(ARM).zip
tag_name: ${{steps.set-tag.outputs.tag}}