Browse Source

Merge branch 'develop' into v1_showcase

Tig 1 year ago
parent
commit
d6a9b2d26e

+ 4 - 3
.github/workflows/dotnet-core.yml

@@ -12,7 +12,6 @@ on:
       
       
 jobs:
 jobs:
   build:
   build:
-
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
     steps:
     steps:
@@ -22,14 +21,16 @@ jobs:
       uses: actions/setup-dotnet@v3
       uses: actions/setup-dotnet@v3
       with:
       with:
         dotnet-version: 7.0
         dotnet-version: 7.0
+        dotnet-quality: 'ga'
 
 
     - name: Install dependencies
     - name: Install dependencies
       run: |
       run: |
         dotnet restore
         dotnet restore
 
 
     - name: Build Debug
     - name: Build Debug
-      run: dotnet build --configuration Debug --no-restore
-
+      run: |
+        dotnet build --configuration Debug --no-restore
+        
     - name: Test
     - name: Test
       run: |
       run: |
         sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
         sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json

+ 9 - 4
.github/workflows/publish.yml

@@ -16,22 +16,27 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v3
     - uses: actions/checkout@v3
       with:
       with:
-        fetch-depth: 0 #fetch-depth is needed for GitVersion
+        fetch-depth: 0 # fetch-depth is needed for GitVersion
 
 
-    - name: Install and calculate the new version with GitVersion 
+    - name: Install GitVersion 
       uses: gittools/actions/gitversion/setup@v0
       uses: gittools/actions/gitversion/setup@v0
       with:
       with:
-        versionSpec: 5.x
+          versionSpec: '5.x'
+          includePrerelease: true
 
 
     - name: Determine Version
     - name: Determine Version
       uses: gittools/actions/gitversion/execute@v0
       uses: gittools/actions/gitversion/execute@v0
+      with:
+        useConfigFile: true
+        #additionalArguments: /b develop
       id: gitversion # step id used as reference for output values
       id: gitversion # step id used as reference for output values
 
 
     - name: Setup dotnet
     - name: Setup dotnet
       uses: actions/setup-dotnet@v3
       uses: actions/setup-dotnet@v3
       with:
       with:
         dotnet-version: 7.0
         dotnet-version: 7.0
-
+        dotnet-quality: 'ga'
+        
     - name: Install dependencies
     - name: Install dependencies
       run: dotnet restore
       run: dotnet restore
 
 

+ 2 - 4
Example/Example.csproj

@@ -4,10 +4,8 @@
     <TargetFramework>net7.0</TargetFramework>
     <TargetFramework>net7.0</TargetFramework>
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Do not modify these. -->
     <!-- Do not modify these. -->
-    <AssemblyVersion>1.14.0.0</AssemblyVersion>
-    <FileVersion>1.14.0.0</FileVersion>
-    <Version>1.14.0</Version>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
+    <FileVersion>1.0.0.0</FileVersion>
+    <Version>1.0.0</Version>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
     <ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />

+ 2 - 2
FSharpExample/FSharpExample.fsproj

@@ -4,8 +4,8 @@
     <TargetFramework>net6.0</TargetFramework>
     <TargetFramework>net6.0</TargetFramework>
     <AssemblyVersion>1.14.0.0</AssemblyVersion>
     <AssemblyVersion>1.14.0.0</AssemblyVersion>
     <FileVersion>1.14.0.0</FileVersion>
     <FileVersion>1.14.0.0</FileVersion>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
-    <Version>1.14.0</Version>
+    <InformationalVersion>1.14.0-pre.1+Branch.develop.Sha.e0b7464669ef87b96b57f2285200e02bcf85d0e7</InformationalVersion>
+    <Version>1.14.0-pre0001</Version>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Compile Include="Program.fs" />
     <Compile Include="Program.fs" />

+ 5 - 2
GitVersion.yml

@@ -1,10 +1,14 @@
 mode: ContinuousDeployment
 mode: ContinuousDeployment
 tag-prefix: '[vV]'
 tag-prefix: '[vV]'
-continuous-delivery-fallback-tag: 'pre'
+continuous-delivery-fallback-tag: pre
 branches:
 branches:
   develop:
   develop:
     mode: ContinuousDeployment
     mode: ContinuousDeployment
     tag: pre
     tag: pre
+    regex: develop
+    source-branches:
+    - main
+    pre-release-weight: 100
   main:
   main:
     tag: rc
     tag: rc
     increment: Patch
     increment: Patch
@@ -22,4 +26,3 @@ branches:
     increment: Inherit
     increment: Inherit
 ignore:
 ignore:
   sha: []
   sha: []
-merge-message-formats: {}

+ 3 - 3
ReactiveExample/ReactiveExample.csproj

@@ -4,10 +4,10 @@
     <TargetFramework>net7.0</TargetFramework>
     <TargetFramework>net7.0</TargetFramework>
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Do not modify these. -->
     <!-- Do not modify these. -->
-    <AssemblyVersion>1.14.0.0</AssemblyVersion>
+    <!--<AssemblyVersion>1.14.0.0</AssemblyVersion>
     <FileVersion>1.14.0.0</FileVersion>
     <FileVersion>1.14.0.0</FileVersion>
-    <Version>1.14.0</Version>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
+    <Version>1.14.0-pre0001</Version>
+    <InformationalVersion>1.14.0-pre.1+Branch.develop.Sha.e0b7464669ef87b96b57f2285200e02bcf85d0e7</InformationalVersion>-->
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />
     <PackageReference Include="ReactiveUI.Fody" Version="19.4.1" />

+ 2 - 5
Terminal.Gui/Terminal.Gui.csproj

@@ -5,11 +5,8 @@
   <!-- GitVersion.xml controls settings  -->
   <!-- GitVersion.xml controls settings  -->
   <!-- =================================================================== -->
   <!-- =================================================================== -->
   <PropertyGroup>
   <PropertyGroup>
-    <!--<AssemblyVersion>1.14.0.0</AssemblyVersion>
-    <FileVersion>1.14.0.0</FileVersion>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
-    <PackageVersion>$(Version)</PackageVersion>
-    <Version>1.14.0</Version>-->
+    <FileVersion>1.0.0.0</FileVersion>
+    <Version>1.0.0</Version>
   </PropertyGroup>
   </PropertyGroup>
   <!-- =================================================================== -->
   <!-- =================================================================== -->
   <!-- .NET Build Settings -->
   <!-- .NET Build Settings -->

+ 2 - 4
UICatalog/UICatalog.csproj

@@ -7,10 +7,8 @@
     <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
     <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Do not modify these. -->
     <!-- Do not modify these. -->
-    <AssemblyVersion>1.14.0.0</AssemblyVersion>
-    <FileVersion>1.14.0.0</FileVersion>
-    <Version>1.14.0</Version>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
+    <FileVersion>1.0.0.0</FileVersion>
+    <Version>1.0.0</Version>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>

+ 2 - 4
UnitTests/UnitTests.csproj

@@ -8,10 +8,8 @@
     <UseDataCollector />
     <UseDataCollector />
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Version numbers are automatically updated by gitversion when a release is released -->
     <!-- Do not modify these. -->
     <!-- Do not modify these. -->
-    <AssemblyVersion>1.14.0.0</AssemblyVersion>
-    <FileVersion>1.14.0.0</FileVersion>
-    <Version>1.14.0</Version>
-    <InformationalVersion>1.14.0+Branch.v1-develop-branching-update.Sha.f47377ce8ba5a97f2f84c745eca04c336b094e96</InformationalVersion>
+    <FileVersion>1.0.0.0</FileVersion>
+    <Version>1.0.0</Version>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>