* 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
This commit is contained in:
Summpot 2020-07-12 09:34:16 +08:00 committed by GitHub
parent 21e5cc1147
commit 5cfabd350b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

38
.github/workflows/ci.yml vendored Normal file
View File

@ -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