Add SplashScreenViewModel
in ViewModelLocator
class
#50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Build legacy' | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- '.github/workflows/**' | |
- 'src/**' | |
- '*.sln' | |
- '*.config' | |
- '*.props' | |
- '*.targets' | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- '.github/workflows/**' | |
- 'src/**' | |
- '*.sln' | |
- '*.config' | |
- '*.props' | |
- '*.targets' | |
defaults: | |
run: | |
shell: pwsh | |
jobs: | |
build-launcher: | |
name: 'Build launcher' | |
strategy: | |
matrix: | |
system: | |
- windows-2022 | |
config: | |
- Debug | |
- Release | |
framework: | |
- net8.0 | |
runs-on: ${{ matrix.system }} | |
env: | |
LauncherProject: src\ImeSense.Launchers.Belarus.Legacy\ImeSense.Launchers.Belarus.Legacy.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
key: Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }} | |
Legacy-NuGet- | |
path: | | |
~/.nuget/packages | |
- name: Restore dependencies | |
run: | | |
dotnet restore $env:LauncherProject ` | |
--locked-mode | |
- name: Build launcher | |
run: | | |
dotnet build $env:LauncherProject ` | |
--configuration ${{ matrix.config }} ` | |
--no-restore | |
- name: Upload launcher | |
uses: actions/upload-artifact@v4 | |
with: | |
name: launcher-${{ matrix.framework }}-${{ matrix.config }}-${{ github.sha }} | |
path: bin/${{ matrix.config }}/ | |
publish-launcher: | |
name: 'Publish launcher' | |
needs: build-launcher | |
strategy: | |
matrix: | |
system: | |
- windows-2022 | |
config: | |
- Release | |
runtime: | |
- win-x64 | |
framework: | |
- net8.0 | |
runs-on: ${{ matrix.system }} | |
env: | |
LauncherProject: src\ImeSense.Launchers.Belarus.Legacy\ImeSense.Launchers.Belarus.Legacy.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
key: Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }} | |
Legacy-NuGet- | |
path: | | |
~/.nuget/packages | |
- name: Publish launcher | |
run: | | |
dotnet publish $env:LauncherProject ` | |
--configuration ${{ matrix.config }} ` | |
--runtime ${{ matrix.runtime }} ` | |
--self-contained true ` | |
-p:PublishSingleFile=true ` | |
-p:IncludeAllContentForSelfExtract=true ` | |
-p:EnableCompressionInSingleFile=true ` | |
-p:DebugSymbols=false ` | |
-p:DebugType=None | |
- name: Upload launcher | |
uses: actions/upload-artifact@v4 | |
with: | |
name: launcher-${{ matrix.framework }}-${{ matrix.runtime }}-${{ github.sha }} | |
path: bin/${{ matrix.config }}/${{ matrix.runtime }}/publish/ |