diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 127e0069bd..4b4c857802 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -52,6 +52,7 @@ jobs: with: name: windows-build-artifact path: bin + compression-level: 9 - name: Create Package - Mosa.Tools.Package run: nuget pack Source\Mosa.Packages\Mosa.Tools.Package.nuspec -Tool -OutputDirectory bin\nupkg -Version ${{ env.BUILD_VERSION }} - name: Create Package - Mosa.Tools.Package.Qemu @@ -73,7 +74,7 @@ jobs: path: bin\nupkg windows-build-packaging: - name: Windows Build Packaging + name: Build Windows Packaging needs: [windows-build, linux-build, macos-build, windows-unit-testing, linux-unit-testing, macos-unit-testing, windows-demo-testing, linux-demo-testing, macos-demo-testing] runs-on: windows-latest timeout-minutes: 15 @@ -139,6 +140,7 @@ jobs: with: name: linux-build-artifact path: bin + compression-level: 9 macos-build: name: MacOS Build @@ -168,6 +170,7 @@ jobs: with: name: macos-build-artifact path: bin + compression-level: 9 windows-unit-testing: strategy: @@ -176,7 +179,7 @@ jobs: fail-fast: false name: Windows - Unit Test -o${{ matrix.optimization }} runs-on: windows-latest - timeout-minutes: 15 + timeout-minutes: 60 needs: windows-build steps: - name: Checkout @@ -191,12 +194,13 @@ jobs: - name: Make Artifact Folder run: mkdir artifact - name: Unit Test - run: bin\Mosa.Utility.UnitTests.exe -check -o${{ matrix.optimization }} -counters artifact\windows-counters-unittests-o${{ matrix.optimization }}.txt + run: bin\Mosa.Utility.UnitTests.exe -check -o${{ matrix.optimization }} -counters artifact\counters-windows-unittests-o${{ matrix.optimization }}.txt - name: Store Counter Artifact uses: actions/upload-artifact@v4 with: - name: windows-counters-unittests-o${{ matrix.optimization }} + name: counters-windows-unittests-o${{ matrix.optimization }} path: artifact + retention-days: 2 linux-unit-testing: strategy: @@ -205,7 +209,7 @@ jobs: fail-fast: false name: Linux - Unit Test -o${{ matrix.optimization }} runs-on: ubuntu-latest - timeout-minutes: 15 + timeout-minutes: 60 needs: linux-build steps: - name: Set net8.0 @@ -228,12 +232,13 @@ jobs: - name: Make Artifact Folder run: mkdir artifact - name: Perform Unit Testing - run: dotnet bin/Mosa.Utility.UnitTests.dll -check -o${{ matrix.optimization }} -counters artifact/linux-counters-unittests-o${{ matrix.optimization }}.txt + run: dotnet bin/Mosa.Utility.UnitTests.dll -check -o${{ matrix.optimization }} -counters artifact/counters-linux-unittests-o${{ matrix.optimization }}.txt - name: Store Counter Artifact uses: actions/upload-artifact@v4 with: - name: linux-counters-unittests-o${{ matrix.optimization }} + name: counters-linux-unittests-o${{ matrix.optimization }} path: artifact + retention-days: 2 macos-unit-testing: strategy: @@ -242,7 +247,7 @@ jobs: fail-fast: false name: MacOS - Unit Test -o${{ matrix.optimization }} runs-on: macos-13 - timeout-minutes: 15 + timeout-minutes: 60 needs: macos-build steps: - name: Set net8.0 @@ -263,12 +268,13 @@ jobs: - name: Make Artifact Folder run: mkdir artifact - name: Unit Test - run: dotnet bin/Mosa.Utility.UnitTests.dll -check -o${{ matrix.optimization }} -counters artifact/macos-counters-unittests-o${{ matrix.optimization }}.txt + run: dotnet bin/Mosa.Utility.UnitTests.dll -check -o${{ matrix.optimization }} -counters artifact/counters-macos-unittests-o${{ matrix.optimization }}.txt - name: Store Counter Artifact uses: actions/upload-artifact@v4 with: - name: macos-counters-unittests-o${{ matrix.optimization }} + name: counters-macos-unittests-o${{ matrix.optimization }} path: artifact + retention-days: 2 windows-demo-testing: strategy: @@ -388,25 +394,25 @@ jobs: name: linux-build-artifact path: bin - name: x64 Compile Test - BareMetal HelloWorld - o0 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o0 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o0 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o1 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o1 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o1 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o2 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o2 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o2 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o3 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o3 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o3 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o4 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o4 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o4 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o5 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o5 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o5 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o6 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o6 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o6 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o7 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o7 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o7 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o8 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o8 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o8 -check -launch-off -output-counters - name: x64 Compile Test - BareMetal HelloWorld - o9 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o9 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.x64.dll -x64 -o9 -check -launch-off -output-counters linux-arm32-compile-test: name: Linux - ARM32 Compile Tests @@ -428,22 +434,36 @@ jobs: name: linux-build-artifact path: bin - name: ARM32 Compile Test - BareMetal HelloWorld - o0 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o0 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o0 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o1 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o1 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o1 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o2 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o2 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o2 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o3 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o3 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o3 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o4 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o4 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o4 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o5 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o5 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o5 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o6 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o6 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o6 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o7 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o7 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o7 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o8 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o8 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o8 -check -launch-off -output-counters - name: ARM32 Compile Test - BareMetal HelloWorld - o9 - run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o9 -check -autolaunch-off -output-counters + run: dotnet bin/Mosa.Tool.Launcher.Console.dll bin/Mosa.BareMetal.HelloWorld.ARM32.dll -arm32 -o9 -check -launch-off -output-counters + + merge-artifacts: + name: Merge Artifacts + runs-on: ubuntu-latest + needs: [windows-unit-testing, linux-unit-testing, macos-unit-testing] + timeout-minutes: 15 + steps: + - name: Merge Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: counters-unit-tests + pattern: counters-* + compression-level: 9 + diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8000ecc436..2171a31e5a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,7 @@ permissions: contents: write env: - BUILD_VERSION: 2.5.1.${{ github.run_number }} + BUILD_VERSION: 2.6.0.${{ github.run_number }} jobs: @@ -26,7 +26,7 @@ jobs: with: python-version: '3.11' - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Update package repository diff --git a/Readme.md b/Readme.md index 0f2873f2c7..1e41a1e876 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ [![License][source-image]][source-target] [![License][github-license]][github-license-link] [![Discord Chat][discord-image]][discord-chat] -[![Build status][build-status-image]][build-status] [![Test status][test-status-image]][test-status] [![Issues][github-issues]][github-issues-link] [![Stars][github-stars]][github-stars-link] [![Forks][github-forks]][github-forks-link] +[![Build status][build-status-image]][build-status] [![Issues][github-issues]][github-issues-link] [![Stars][github-stars]][github-stars-link] [![Forks][github-forks]][github-forks-link] [build-status-image]: https://github.com/mosa/MOSA-Project/workflows/Builds/badge.svg?branch=master [build-status]: https://github.com/mosa/MOSA-Project/actions diff --git a/Source/Mosa.Utility.UnitTests/Numbers/C.cs b/Source/Mosa.Utility.UnitTests/Numbers/C.cs index c3af9e3a79..ee893cdf2f 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/C.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/C.cs @@ -10,7 +10,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/I1.cs b/Source/Mosa.Utility.UnitTests/Numbers/I1.cs index b56d3ca692..70b4e91ebe 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/I1.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/I1.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class I1 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -33,6 +35,15 @@ public static IList GetSeries() AddNegatives(list); list = list.Distinct().ToList(); + + //for (var i = 0; i < 8; i++) + //{ + // var v = 1 << i; + // list.AddIfNew((sbyte)v); + // list.AddIfNew((sbyte)(v + 1)); + // list.AddIfNew((sbyte)(v - 2)); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/I2.cs b/Source/Mosa.Utility.UnitTests/Numbers/I2.cs index d165d64bd5..d922fe3745 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/I2.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/I2.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class I2 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -38,6 +40,15 @@ public static IList GetSeries() AddNegatives(list); list = list.Distinct().ToList(); + + //for (var i = 0; i < 16; i++) + //{ + // var v = 1 << i; + // list.AddIfNew((short)v); + // list.AddIfNew((short)(v + 1)); + // list.AddIfNew((short)(v - 2)); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/I4.cs b/Source/Mosa.Utility.UnitTests/Numbers/I4.cs index 18258bbde7..1a5b5af7f5 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/I4.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/I4.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class I4 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -44,6 +46,15 @@ public static IList GetSeries() AddNegatives(list); list = list.Distinct().ToList(); + + //for (var i = 0; i < 32; i++) + //{ + // var v = 1 << i; + // list.AddIfNew(v); + // list.AddIfNew(v + 1); + // list.AddIfNew(v - 2); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/I8.cs b/Source/Mosa.Utility.UnitTests/Numbers/I8.cs index e6fb5272bc..7718853e61 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/I8.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/I8.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class I8 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -46,6 +48,15 @@ public static IList GetSeries() AddNegatives(list); list = list.Distinct().ToList(); + + //for (var i = 0; i < 64; i++) + //{ + // var v = 1 << i; + // list.AddIfNew(v); + // list.AddIfNew(v + 1); + // list.AddIfNew(v - 2); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/R4.cs b/Source/Mosa.Utility.UnitTests/Numbers/R4.cs index 5e48e869e6..a0348f746f 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/R4.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/R4.cs @@ -10,7 +10,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/R8.cs b/Source/Mosa.Utility.UnitTests/Numbers/R8.cs index 800b891e9a..452a1ea2de 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/R8.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/R8.cs @@ -10,7 +10,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/U1.cs b/Source/Mosa.Utility.UnitTests/Numbers/U1.cs index 39c14fe851..291c40a2f5 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/U1.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/U1.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class U1 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -31,8 +33,16 @@ public static IList GetSeries() }; list = list.Distinct().ToList(); - list.Sort(); + //for (var i = 0; i < 8; i++) + //{ + // var v = 1 << i; + // list.AddIfNew((byte)v); + // list.AddIfNew((byte)(v + 1)); + // list.AddIfNew((byte)(v - 2)); + //} + + list.Sort(); return list; } } diff --git a/Source/Mosa.Utility.UnitTests/Numbers/U2.cs b/Source/Mosa.Utility.UnitTests/Numbers/U2.cs index 4f1cf8a23c..9adc8dedda 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/U2.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/U2.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class U2 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -35,6 +37,15 @@ public static IList GetSeries() }; list = list.Distinct().ToList(); + + //for (var i = 0; i < 16; i++) + //{ + // var v = 1 << i; + // list.AddIfNew((ushort)v); + // list.AddIfNew((ushort)(v + 1)); + // list.AddIfNew((ushort)(v - 2)); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/U4.cs b/Source/Mosa.Utility.UnitTests/Numbers/U4.cs index a893cf3828..33e28fd599 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/U4.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/U4.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class U4 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -39,6 +41,15 @@ public static IList GetSeries() }; list = list.Distinct().ToList(); + + //for (var i = 0; i < 32; i++) + //{ + // var v = 1u << i; + // list.AddIfNew(v); + // list.AddIfNew(v + 1); + // list.AddIfNew(v - 2); + //} + list.Sort(); return list; diff --git a/Source/Mosa.Utility.UnitTests/Numbers/U8.cs b/Source/Mosa.Utility.UnitTests/Numbers/U8.cs index c7afef0093..b517217545 100644 --- a/Source/Mosa.Utility.UnitTests/Numbers/U8.cs +++ b/Source/Mosa.Utility.UnitTests/Numbers/U8.cs @@ -1,5 +1,7 @@ // Copyright (c) MOSA Project. Licensed under the New BSD License. +using Mosa.Compiler.Common; + namespace Mosa.Utility.UnitTests.Numbers; public static class U8 @@ -10,7 +12,7 @@ public static IEnumerable Series { get { - if (series == null) series = GetSeries(); + series ??= GetSeries(); foreach (var value in series) yield return value; @@ -43,6 +45,15 @@ public static IList GetSeries() }; list = list.Distinct().ToList(); + + //for (var i = 0; i < 64; i++) + //{ + // var v = 1ul << i; + // list.AddIfNew(v); + // list.AddIfNew(v + 1); + // list.AddIfNew(v - 2); + //} + list.Sort(); return list; diff --git a/Source/Mosa.sln b/Source/Mosa.sln index 8c5ee8e7c1..9d23b03ad6 100644 --- a/Source/Mosa.sln +++ b/Source/Mosa.sln @@ -78,6 +78,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{624E8284-4F0A-4C3F-B5F2-271105E48ECF}" ProjectSection(SolutionItems) = preProject ..\.github\workflows\builds.yml = ..\.github\workflows\builds.yml + ..\.github\workflows\docs.yml = ..\.github\workflows\docs.yml EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data", "Data", "{A406F567-5C89-45AB-88CE-E20616B28FFD}" @@ -252,7 +253,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Template", "Template", "{A1 TemplateLibrary.txt = TemplateLibrary.txt EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mosa.Tool.Explorer.Avalonia", "Mosa.Tool.Explorer.Avalonia\Mosa.Tool.Explorer.Avalonia.csproj", "{763FDCF2-2501-4756-A7A1-62813D610B00}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mosa.Tool.Explorer.Avalonia", "Mosa.Tool.Explorer.Avalonia\Mosa.Tool.Explorer.Avalonia.csproj", "{763FDCF2-2501-4756-A7A1-62813D610B00}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution