From 759cb53f649bc9860e1a63fe1f7c4faf4af4c662 Mon Sep 17 00:00:00 2001 From: Gus Date: Mon, 8 Feb 2021 17:57:02 +0100 Subject: [PATCH] Project: Setup CI --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ nuget.config | 11 +++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 nuget.config diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c830b3d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + architecture: [x86, x64] + platform: [win] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "5.0.101" + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build utilities + shell: pwsh + run: | + msbuild /m /t:restore,wpinternals:publish /p:Platform=${{ matrix.architecture }} /p:RuntimeIdentifier=${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishDir=${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishSingleFile=true /p:PublishTrimmed=true WPinternals.sln + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.platform }}-${{ matrix.architecture }} + path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..efb6ffe --- /dev/null +++ b/nuget.config @@ -0,0 +1,11 @@ + + + + + + + +