mirror of
https://github.com/Pixeval/Pixeval.git
synced 2025-01-08 11:47:34 +08:00
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
This commit is contained in:
parent
21e5cc1147
commit
5cfabd350b
38
.github/workflows/ci.yml
vendored
Normal file
38
.github/workflows/ci.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user