Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dotnet.yml #891

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
02e7813
Create dotnet.yml
vb2ae Nov 9, 2023
48b843e
updated some nuget packages
vb2ae Nov 9, 2023
df2e228
Update dotnet.yml
vb2ae Nov 10, 2023
5788065
Update dotnet.yml
vb2ae Nov 10, 2023
2b86c5c
Update dotnet.yml
vb2ae Nov 10, 2023
4c04ac1
Update dotnet.yml
vb2ae Nov 11, 2023
785b9f2
Update dotnet.yml
vb2ae Nov 11, 2023
2077ab2
Update dotnet.yml
vb2ae Nov 11, 2023
29f2bb1
Update dotnet.yml
vb2ae Nov 11, 2023
77e13bb
Update dotnet.yml
vb2ae Nov 11, 2023
60d48ee
Update dotnet.yml
vb2ae Nov 11, 2023
0ba39d0
Update dotnet.yml
vb2ae Nov 11, 2023
a6e74d3
Update dotnet.yml
vb2ae Nov 11, 2023
e895d8d
Update dotnet.yml
vb2ae Nov 12, 2023
695632b
Update dotnet.yml
vb2ae Nov 12, 2023
ed38a6f
Update dotnet.yml
vb2ae Nov 12, 2023
a8e478e
Update dotnet.yml
vb2ae Nov 12, 2023
730532c
Update dotnet.yml
vb2ae Nov 12, 2023
7a2c42b
Update dotnet.yml
vb2ae Nov 12, 2023
87a16d7
Update dotnet.yml
vb2ae Nov 17, 2023
75cfb82
Update dotnet.yml
vb2ae Nov 17, 2023
60a7528
Update dotnet.yml
vb2ae Nov 17, 2023
dbe8628
Update dotnet.yml
vb2ae Nov 17, 2023
1bdd40a
Update dotnet.yml
vb2ae Nov 18, 2023
f9efdd1
Update dotnet.yml
vb2ae Nov 18, 2023
4c412fc
Update dotnet.yml
vb2ae Nov 18, 2023
6580482
Update dotnet.yml
vb2ae Nov 18, 2023
4ecaea6
Update codeql-analysis.yml
vb2ae Nov 18, 2023
0f1d823
Update dotnet.yml
vb2ae Nov 18, 2023
93f4e84
Update README.md
vb2ae Nov 19, 2023
f127d13
Update dotnet.yml
vb2ae Nov 20, 2023
9366614
Update codeql-analysis.yml
vb2ae Nov 21, 2023
4f944cf
Update dotnet.yml
vb2ae Nov 21, 2023
427d472
Update codeql-analysis.yml
vb2ae Nov 21, 2023
8261ebf
Update dotnet.yml
vb2ae Nov 21, 2023
1ccff81
Update codeql-analysis.yml
vb2ae Nov 21, 2023
11fce79
fix build
vb2ae Dec 17, 2023
9572c9b
Merge branch 'vb2ae-patch-github-build' of https://github.com/Calibur…
vb2ae Jan 14, 2024
364e6f2
Merge branch 'master' into vb2ae-patch-github-build
vb2ae Jan 14, 2024
efe6ecc
Upgrade .net maui to use .net 8
vb2ae Jan 15, 2024
8a8e2f7
fix build
vb2ae Jan 15, 2024
95c1b87
fix build issue
vb2ae Jan 20, 2024
60b9f3f
update .net version
vb2ae Jan 21, 2024
36fd703
remove monoandroid and xamain ios
vb2ae Jan 27, 2024
27db3ae
fix android version
vb2ae Jan 27, 2024
f243765
fix maui build
vb2ae Jan 27, 2024
8db751d
update android version
vb2ae Feb 9, 2024
6f6fe05
change android version
vb2ae Feb 9, 2024
221178e
Update codeql-analysis.yml
vb2ae Feb 23, 2024
c0824d3
fix build
vb2ae Feb 23, 2024
0d73391
Merge branch 'vb2ae-patch-github-build' of https://github.com/Calibur…
vb2ae Feb 23, 2024
72af6c3
Update azure-pipeline.yml
vb2ae Apr 21, 2024
bf9a43c
Update dotnet.yml
vb2ae Apr 21, 2024
4116275
Update dotnet.yml
vb2ae Apr 21, 2024
cd5b474
fix formatting in build.yml
vb2ae Apr 21, 2024
9478cd0
Add setup build to github action
vb2ae Apr 21, 2024
ddb4015
build features
vb2ae Apr 21, 2024
c0e86ab
fix dotnet wpf sample build
vb2ae Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand All @@ -33,22 +33,22 @@ jobs:

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.100
dotnet-version: 8.0.x

- name: Setup Java SDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'microsoft'
java-version: 11


- name: Setup NuGet.exe for use with actions
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@fd9fffd6ca4541cf4152a9565835ca1a88a6eb37
uses: NuGet/setup-nuget@v1.1.1
uses: NuGet/setup-nuget@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1

Expand Down
84 changes: 84 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
caliburn_sln : "src\\caliburn.micro.sln"
caliburn_tutorial: "samples\\tutorals\\WPF\\Wpf.Tutorial\\Caliburn.Micro.Tutorial.App.sln"
caliburn_setup: "samples\\setup\\setup.sln"
caliburn_features: "samples\\features\\features.sln"
package_feed: "https://nuget.pkg.github.com/caliburn-micro/index.json"
nuget_folder: "\\packages"

jobs:
build:

runs-on: windows-2022

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Setup Java SDK
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: 11


- name: Setup NuGet.exe for use with actions
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@fd9fffd6ca4541cf4152a9565835ca1a88a6eb37
uses: NuGet/setup-nuget@v1.1.1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1

- name: search workloads
run: dotnet workload search
- name: restore workloads
run: dotnet workload install maui maui-android maui-ios maui-tizen maui-maccatalyst maui-windows android --source https://api.nuget.org/v3/index.json
- name: list workloads
run: dotnet workload list

- name: Ensure GitHub NuGet Source
run: dotnet nuget add source ${{ env.package_feed }}
-n github
-u ${{ secrets.NUGET_USER }}
-p ${{ secrets.CONSUME_CALIBURN_FEED }}
--store-password-in-clear-text

- name: Restore nuget packages
run: msbuild ${{env.caliburn_sln}} -t:restore

- name: Build app for release
run: msbuild ${{env.caliburn_sln}} /t:Build /p:Configuration=Release


- name: Restore nuget packages for tutorial
run: msbuild ${{env.caliburn_tutorial}} -t:restore

- name: Build feature tutorial
run: msbuild ${{env.caliburn_tutorial}} /t:Build /p:Configuration=Release

- name: Restore nuget packages for features
run: msbuild ${{env.caliburn_features}} -t:restore

- name: Build feature features
run: msbuild ${{env.caliburn_features}} /t:Build /p:Configuration=Release

- name: Pack Nuget
run: msbuild ${{env.caliburn_sln}} /t:package /p:Configuration=Release

- name: publish Nuget Packages to GitHub
run: dotnet nuget publish ${{env.nuget_folder}} --source ${{env.package_feed}} --api-key ${{secrets.PUBLISH_NUGET_PACKAGE}} --skip-duplicate
if: github.event_name != 'pull_request'
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
CI | [![Build Status](https://img.shields.io/azure-devops/build/caliburn-micro/caliburn-micro/3.svg?logo=windows&logoColor=white&style=for-the-badge)](https://dev.azure.com/caliburn-micro/caliburn-micro/_build/latest?definitionId=3)
MyGet | [![MyGet Package](https://img.shields.io/myget/caliburn-micro-builds/v/caliburn.micro.svg?label=caliburn.micro&logo=nuget&logoColor=white&&style=for-the-badge&colorB=2B7DCC)](https://www.myget.org/feed/caliburn-micro-builds/package/nuget/Caliburn.Micro)
NuGet | [![NuGet Package](https://img.shields.io/nuget/v/Caliburn.Micro.svg?logo=nuget&logoColor=white&&style=for-the-badge&colorB=green)](https://www.nuget.org/packages/Caliburn.Micro)
GitHub Action | ![example workflow](https://github.com/Caliburn-Micro/Caliburn.Micro/actions/workflows/dotnet.yml/badge.svg)

Caliburn.Micro is a small, yet powerful framework, designed for building applications across all XAML platforms. With strong support for MVVM and other proven UI patterns, Caliburn.Micro will enable you to build your solution quickly, without the need to sacrifice code quality or testability.

Expand All @@ -14,6 +15,14 @@ Caliburn.Micro is a small, yet powerful framework, designed for building applica
- [Caliburn.Micro](https://www.nuget.org/packages/Caliburn.Micro/) - The platform-specific adapters for Caliburn.Micro.
- [Caliburn.Micro.Xamarin.Forms](https://www.nuget.org/packages/Caliburn.Micro.Xamarin.Forms/) - Support to Caliburn.Micro in Xamarin.Forms.

## Packages are available on Github
- [Caliburn.Micro.Core](https://github.com/Caliburn-Micro/Caliburn.Micro/pkgs/nuget/Caliburn.Micro.Core) - The Portable Class Library (PCL) portion of Caliburn.Micro.
- [Caliburn.Micro](https://github.com/Caliburn-Micro/Caliburn.Micro/pkgs/nuget/Caliburn.Micro) - The platform-specific adapters for Caliburn.Micro.
- [Caliburn.Micro.Xamarin.Forms](https://github.com/Caliburn-Micro/Caliburn.Micro/pkgs/nuget/Caliburn.Micro.Xamarin.Forms) - Support to Caliburn.Micro for Xamarin.Forms.
- [Caliburn.Micro.Maui](https://github.com/Caliburn-Micro/Caliburn.Micro/pkgs/nuget/Caliburn.Micro.Maui) - Support to Caliburn.Micro for dotnet Maui
- [Caliburn.Micro.Avalonia](https://github.com/Caliburn-Micro/Caliburn.Micro/pkgs/nuget/Caliburn.Micro.Avalonia) - Support To Caliburn.Micro for Avalonia UI
- [Caliburn.Micro.WinUI]() - Support to Caliburn.Micro for WinUI (WinApp Sdk) Coming Soon

## Questions
- For non bug related questions see [Stack Overflow](https://stackoverflow.com/questions/tagged/caliburn.micro)

Expand Down
33 changes: 2 additions & 31 deletions azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ steps:
displayName: 'Install .NET'
inputs:
packageType: 'sdk'
useGlobalJson: true
version: '8.0.x'


- task: PowerShell@2
displayName: 'Install MAUI'
Expand Down Expand Up @@ -63,36 +64,6 @@ steps:
projects: '**/*Test*/*.csproj'
arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'

- task: NuGetCommand@2
displayName: Restore Setup Solution
inputs:
restoreSolution: '$(setupsamplessolution)'
feedsToUse: config
nugetConfigPath: 'samples\setup\.nuget\nuget.config'
verbosityRestore: 'detailed'


- task: VSBuild@1
displayName: Build Setup Solution
inputs:
solution: '$(setupSamplesSolution)'
configuration: '$(buildConfiguration)'
platform: '$(buildPlatform)'
msbuildArgs: '/t:Build /p:JavaSdkDirectory="$(JAVA_HOME_11_X64)"'

- task: NuGetCommand@2
displayName: Restore Features Solution
inputs:
restoreSolution: '$(featuresSamplesSolution)'

- task: VSBuild@1
displayName: Build Features Solution
inputs:
solution: '$(featuresSamplesSolution)'
configuration: '$(buildConfiguration)'
platform: '$(buildPlatform)'
msbuildArgs: '/t:Build /p:JavaSdkDirectory="$(JAVA_HOME_11_X64)"'

- task: CopyFiles@2
displayName: Copy Packages to Artifact Directory
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Caliburn.Micro;
using Caliburn.Micro;

#if XAMARINFORMS
using Caliburn.Micro.Xamarin.Forms;
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading