Skip to content

Commit

Permalink
尝试自动构建
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Oct 21, 2023
1 parent 0dff190 commit 5809d57
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build WPF

on: [push]

jobs:
BuildDebug:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
dotnet-quality: 'preview'
- name: Build WPF
run: .\build.cmd -pack -ci -configuration Debug -prepareMachine /p:Platform=x86
- name: Build CustomWPF
run: dotnet build CustomWpf
- name: Push
uses: actions/upload-artifact@v1
with:
name: WPF_Debug
path: ./artifacts/packages/Debug/NonShipping

BuildRelease:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
dotnet-quality: 'preview'
- name: Build WPF
run: .\build.cmd -pack -ci -configuration Release -prepareMachine /p:Platform=x86
- name: Build CustomWPF
run: dotnet build CustomWpf -c Release
- name: Push
uses: actions/upload-artifact@v1
with:
name: WPF_Release
path: ./artifacts/packages/Release/NonShipping

0 comments on commit 5809d57

Please sign in to comment.