Skip to content

Commit

Permalink
build: add winform ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Jan 26, 2024
1 parent 3303126 commit af5b746
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@ name: .NET

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
include-prerelease: true
- name: Restore dependencies
run: dotnet restore ./src/ImeWlConverterCmd
- name: Build
run: dotnet build --no-restore ./src/ImeWlConverterCmd
- name: Test
run: dotnet test --no-build --verbosity normal ./src/ImeWlConverterCoreTest/ImeWlConverterCoreTest.csproj
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore ./src/ImeWlConverterCmd
# - name: Build
# run: dotnet build --no-restore ./src/ImeWlConverterCmd
- name: Test
run: dotnet test --no-build --verbosity normal ./src/ImeWlConverterCoreTest/ImeWlConverterCoreTest.csproj
- name: Publish
run: dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: Cmd
path: ./publish
30 changes: 30 additions & 0 deletions .github/workflows/winform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: .NET WinForm

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore "./src/IME WL Converter Win"
# - name: Build
# run: dotnet build --no-restore "./src/IME WL Converter Win"
- name: Publish
run: dotnet publish --configuration Release --output ./publish "./src/IME WL Converter Win"

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: WinFormApp
path: ./publish

0 comments on commit af5b746

Please sign in to comment.