Skip to content

Commit

Permalink
- Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed May 18, 2024
1 parent 294893d commit 535d374
Showing 1 changed file with 47 additions and 27 deletions.
74 changes: 47 additions & 27 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -139,6 +140,7 @@ jobs:
with:
name: linux-build-artifact
path: bin
compression-level: 9

macos-build:
name: MacOS Build
Expand Down Expand Up @@ -168,6 +170,7 @@ jobs:
with:
name: macos-build-artifact
path: bin
compression-level: 9

windows-unit-testing:
strategy:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 535d374

Please sign in to comment.