Skip to content

Get things ready for 1.01 release #34

Get things ready for 1.01 release

Get things ready for 1.01 release #34

Workflow file for this run

name: Microcharts PR Build
on:
- pull_request
- workflow_dispatch
jobs:
build:
name: "Build for PR"
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Clone source
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Add MSBuild to PATH (Windows)
uses: microsoft/[email protected]
if: matrix.os == 'windows-latest'
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: "Install .NET MAUI workload"
run: dotnet workload install maui
- name: "Restore NuGet packages (Windows)"
run: dotnet msbuild /t:restore /p:Configuration=Release Sources/Microcharts.sln /bl:win-restore-build.binlog
if: matrix.os == 'windows-latest'
- name: "Restore NuGet packages (Mac)"
run: msbuild /t:restore /p:Configuration=Release Sources/Microcharts-mac.slnf /bl:mac-restore-build.binlog
if: matrix.os == 'macos-latest'
- name: "Publish bin logs as artifacts"
uses: actions/upload-artifact@v3
with:
name: msbuild-binlogs
path: '**/*.binlog'
if: always()
- name: "Build and pack Microcharts"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts/Microcharts.csproj
- name: "Build and pack Microcharts Android"
run: |
dotnet build Sources/Microcharts.Droid/Microcharts.Droid.csproj /p:Configuration=Release
msbuild /t:pack /p:Configuration=Release Sources/Microcharts.Droid/Microcharts.Droid.csproj
- name: "Build and pack Microcharts Xamarin.Forms"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Forms/Microcharts.Forms.csproj
- name: "Build and pack Microcharts iOS"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.iOS/Microcharts.iOS.csproj
- name: "Build and pack Microcharts macOS"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.macOS/Microcharts.macOS.csproj
if: matrix.os == 'macos-latest'
- name: "Build and pack Microcharts UWP"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Uwp/Microcharts.Uwp.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts Avalonia"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Avalonia/Microcharts.Avalonia.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts Eto"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Eto/Microcharts.Eto.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts .NET MAUI"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Maui/Microcharts.Maui.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts Uno"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Uno/Microcharts.Uno.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts Uno WinUI"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.Uno.WinUI/Microcharts.Uno.WinUI.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts WinUI"
run: msbuild /t:build,pack /p:Configuration=Release Sources/Microcharts.WinUI/Microcharts.WinUI.csproj
if: matrix.os == 'windows-latest'
- name: "Build and pack Microcharts Meta-package"
run: dotnet pack Sources/Microcharts.Metapackage/Microcharts.Metapackage.csproj