From 5cfabd350b2db5971dcbd563b0059a17e37c4df4 Mon Sep 17 00:00:00 2001 From: Summpot Date: Sun, 12 Jul 2020 09:34:16 +0800 Subject: [PATCH] CI (#79) * Create dotnet-core.yml * Update and rename dotnet-core.yml to ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Delete ci.yml * Create ci.yml --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..9e5e0ba3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: [push,pull_request] + +jobs: + + build: + runs-on: windows-latest + + env: + Solution_Name: ./Pixeval.sln + Project_Path: ./src/Pixeval/Pixeval.csproj + Configuration: Release + Platform: x64 + + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.105 + + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.0 + + # Restore the application to populate the obj folder with RuntimeIdentifiers + - name: Restore the application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + + # Create the app package by building and packaging the Windows Application Packaging project + - name: Build the application + run: msbuild $env:Project_Path /p:Configuration=$env:Configuration /p:Platform=$env:Platform