⬆️ Bump Material.Avalonia from 2.5.1 to 3.4.2 #315
Workflow file for this run
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: Main Build | |
on: | |
pull_request: | |
branches: [ main ] | |
env: | |
CONFIGURATION: Release | |
FRAMEWORK: net6.0 | |
DOTNETVERSION: '6.0.x' | |
Actions_Allow_Unsecure_Commands: true # Allows AddPAth and SetEnv commands | |
jobs: | |
build-windows: | |
if: false | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/[email protected] | |
with: | |
dotnet-version: ${{env.DOTNETVERSION}} | |
# Add MsBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: Update manifest version | |
run: | | |
[xml]$directoryProps = get-content "Directory.Build.Props" | |
[xml]$manifest = get-content "TeslaVideoCenter.Windows.Package/Package.appxmanifest" | |
$manifest.Package.Identity.Version = $directoryProps.Project.PropertyGroup.VersionPrefix + "." + (Get-Date).DayOfYear + "." + $env:GITHUB_RUN_NUMBER | |
$manifest.save("TeslaVideoCenter.Windows.Package/Package.appxmanifest") | |
- name: Install dependencies | |
run: msbuild /t:Restore /p:Configuration=${{ env.Configuration }} /p:RuntimeIdentifier=win10-x64 | |
#- name: Build | |
# run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore | |
#- name: Test | |
# run: dotnet test --no-restore --verbosity normal | |
# Build the Windows Application Packaging project | |
- name: Build the Windows Application Packaging Project (wapproj) | |
run: msbuild TeslaVideoCenter.Windows.Package/TeslaVideoCenter.Windows.Package.wapproj /p:Platform=${{ env.TargetPlatform }} /p:Configuration=${{ env.Configuration }} /p:UapAppxPackageBuildMode=${{ env.BuildMode }} /p:AppxBundle=${{ env.AppxBundle }} /p:PackageCertificatePassword=${{ secrets.PFXPASSWORD}} | |
env: | |
AppxBundle: Never | |
BuildMode: SideLoadOnly | |
TargetPlatform: x64 | |
macos-bundle: | |
runs-on: macOS-latest | |
defaults: | |
run: | |
working-directory: TeslaVideoCenter.Mac | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{env.DOTNETVERSION}} | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal |