From e9ee234df2630d0b6ad54637b1b2161cedc955ac Mon Sep 17 00:00:00 2001 From: Aleksandar Ivanov <74899441+aleks-ivanov@users.noreply.github.com> Date: Fri, 25 Jun 2021 17:40:20 +0300 Subject: [PATCH] Create CI pipelines for all projects (#1) --- .github/workflows/diagnostics.tracing-ci.yml | 52 +++++++++++++++++++ .github/workflows/system.numerics-ci.yml | 48 +++++++++++++++++ .../system.reflection.metadata-ci.yml | 38 ++++++++++++++ .github/workflows/winforms-hdpi-ci.yml | 52 +++++++++++++++++++ 4 files changed, 190 insertions(+) create mode 100644 .github/workflows/diagnostics.tracing-ci.yml create mode 100644 .github/workflows/system.numerics-ci.yml create mode 100644 .github/workflows/system.reflection.metadata-ci.yml create mode 100644 .github/workflows/winforms-hdpi-ci.yml diff --git a/.github/workflows/diagnostics.tracing-ci.yml b/.github/workflows/diagnostics.tracing-ci.yml new file mode 100644 index 0000000..cb1ff50 --- /dev/null +++ b/.github/workflows/diagnostics.tracing-ci.yml @@ -0,0 +1,52 @@ +name: Diagnostics.Tracing CI Pipeline + +on: + push: + paths: + - 'Microsoft.Diagnostics.Tracing/**' + pull_request: + paths: + - 'Microsoft.Diagnostics.Tracing/**' + workflow_dispatch: + +jobs: + ci: + name: Continuuous Integration + runs-on: windows-latest + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Checkout repository + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Restore EventSource solution + run: | + nuget restore Microsoft.Diagnostics.Tracing\EventSource\EventSource.sln + + - name: Build EventSource solution + run: | + msbuild Microsoft.Diagnostics.Tracing\EventSource\EventSource.sln -p:Configuration=Release -p:Platform='Any CPU' -p:OutDir="${{ github.workspace }}\EventSource Build Output" + + - name: Upload EventSource build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: EventSource Build Output + path: 'EventSource Build Output/' + + - name: Restore TraceEvent solution + run: | + nuget restore Microsoft.Diagnostics.Tracing\TraceEvent\TraceEvent.sln + + - name: Build TraceEvent solution + run: | + msbuild Microsoft.Diagnostics.Tracing\TraceEvent\TraceEvent.sln -p:Configuration=Release -p:Platform='Any CPU' -p:OutDir="${{ github.workspace }}\TraceEvent Build Output" + + - name: Upload TraceEvent build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: TraceEvent Build Output + path: 'TraceEvent Build Output/' \ No newline at end of file diff --git a/.github/workflows/system.numerics-ci.yml b/.github/workflows/system.numerics-ci.yml new file mode 100644 index 0000000..9d6d6f1 --- /dev/null +++ b/.github/workflows/system.numerics-ci.yml @@ -0,0 +1,48 @@ +name: System.Numerics CI Pipeline + +on: + push: + paths: + - 'System.Numerics/**' + pull_request: + paths: + - 'System.Numerics/**' + workflow_dispatch: + +jobs: + ci: + name: Continuuous Integration + runs-on: windows-latest + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Checkout repository + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Restore System.Numerics solution + run: | + nuget restore System.Numerics\SIMD\System.Numerics.Vectors.SampleCode.sln + + - name: Build Mandelbrot project + run: | + msbuild System.Numerics\SIMD\Mandelbrot\Mandelbrot.csproj -p:Configuration=Release -p:Platform=x64 -p:OutDir="${{ github.workspace }}\Mandelbrot Build Output" + + - name: Upload Mandelbrot build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: Mandelbrot Build Output + path: 'Mandelbrot Build Output/' + + - name: Build RayTracer project + run: | + msbuild System.Numerics\SIMD\RayTracer\RayTracer.csproj -p:Configuration=Release -p:Platform='AnyCPU' -p:OutDir="${{ github.workspace }}\RayTracer Build Output" + + - name: Upload RayTracer build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: RayTracer Build Output + path: 'RayTracer Build Output/' \ No newline at end of file diff --git a/.github/workflows/system.reflection.metadata-ci.yml b/.github/workflows/system.reflection.metadata-ci.yml new file mode 100644 index 0000000..092284a --- /dev/null +++ b/.github/workflows/system.reflection.metadata-ci.yml @@ -0,0 +1,38 @@ +name: System.Reflection.Metadata CI Pipeline + +on: + push: + paths: + - 'System.Reflection.Metadata/**' + pull_request: + paths: + - 'System.Reflection.Metadata/**' + workflow_dispatch: + +jobs: + ci: + name: Continuuous Integration + runs-on: windows-latest + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Checkout repository + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Restore MdDumper project + run: | + nuget restore System.Reflection.Metadata\MdDumper\MdDumper.csproj + + - name: Build MdDumper project + run: | + msbuild System.Reflection.Metadata\MdDumper\MdDumper.csproj -p:OutDir="${{ github.workspace }}\MdDumper Build Output" + + - name: Upload MdDumper build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: MdDumper Build Output + path: 'MdDumper Build Output/' \ No newline at end of file diff --git a/.github/workflows/winforms-hdpi-ci.yml b/.github/workflows/winforms-hdpi-ci.yml new file mode 100644 index 0000000..f30fae8 --- /dev/null +++ b/.github/workflows/winforms-hdpi-ci.yml @@ -0,0 +1,52 @@ +name: WinForms-HDPI CI Pipeline + +on: + push: + paths: + - 'WinForms-HDPI/**' + pull_request: + paths: + - 'WinForms-HDPI/**' + workflow_dispatch: + +jobs: + ci: + name: Continuuous Integration + runs-on: windows-latest + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Checkout repository + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Restore PerMonitorAware solution + run: | + nuget restore WinForms-HDPI\PerMonitorAware\PerMonitorDemo.sln + + - name: Build PerMonitorAware solution + run: | + msbuild WinForms-HDPI\PerMonitorAware\PerMonitorDemo.sln -p:Configuration=Release -p:Platform='Any CPU' -p:OutDir="${{ github.workspace }}\PerMonitorAware Build Output" + + - name: Upload PerMonitorAware build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: PerMonitorAware Build Output + path: 'PerMonitorAware Build Output/' + + - name: Restore SystemAware solution + run: | + nuget restore WinForms-HDPI\SystemAware\HighDpiDemo.sln + + - name: Build SystemAware solution + run: | + msbuild WinForms-HDPI\SystemAware\HighDpiDemo.sln -p:Configuration=Release -p:Platform='Any CPU' -p:OutDir="${{ github.workspace }}\SystemAware Build Output" + + - name: Upload SystemAware build output as pipeline artifact + uses: actions/upload-artifact@v1 + with: + name: SystemAware Build Output + path: 'SystemAware Build Output/' \ No newline at end of file