Ver 0.12.0-RC1: Fix a lot of the problems. #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
paths: | |
- "**.cs" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
BuildForWindows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
project: [WPF] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Write Build info | |
shell: cmd | |
run: | | |
cmd /c echo GITHUB ACTION #${{github.run_number}} >${{ github.workspace }}\Hakuu\Universal\buildinfo.info | |
cmd /c echo %date% %time% >>${{ github.workspace }}\Hakuu\Universal\buildinfo.info | |
cmd /c echo ${{github.ref}} ${{github.sha}}>>${{ github.workspace }}\Hakuu\Universal\buildinfo.info | |
- name: DotNet restore | |
run: dotnet restore | |
- name: Build the project(Release) | |
run: dotnet build -p:Configuration=Release "Hakuu/${{ matrix.project }}/Hakuu-${{ matrix.project }}.csproj" | |
- name: Build the project(Debug) | |
run: dotnet build "Hakuu/${{ matrix.project }}/Hakuu-${{ matrix.project }}.csproj" | |
- name: Upload Hakuu(Release,dotnet6-windows) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Hakuu_${{ matrix.project }}_dotnet6 | |
path: ${{ github.workspace }}\Hakuu\${{ matrix.project }}\bin\Release\net6.0-windows | |
if-no-files-found: ignore | |
- name: Upload Hakuu(Release,dotnetframework472) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Hakuu_${{ matrix.project }}_dotnetframework472 | |
path: ${{ github.workspace }}\Hakuu\${{ matrix.project }}\bin\Release\net472 | |
if-no-files-found: ignore | |
- name: Upload Hakuu(Debug,dotnet6-windows) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Hakuu_${{ matrix.project }}_dotnet6_debug | |
path: ${{ github.workspace }}\Hakuu\${{ matrix.project }}\bin\Debug\net6.0-windows | |
if-no-files-found: ignore | |
- name: Upload Hakuu(Debug,dotnetframework472) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Hakuu_${{ matrix.project }}_dotnetframework472_debug | |
path: ${{ github.workspace }}\Hakuu\${{ matrix.project }}\bin\Debug\net472 | |
if-no-files-found: ignore | |
- name: Build the project(Publish) | |
run: | | |
dotnet clean | |
dotnet publish "Hakuu/${{ matrix.project }}/Hakuu-${{ matrix.project }}.csproj" -f net6.0-windows --no-self-contained -p:PublishSingleFile=true -p:RuntimeIdentifier=win-x64 -p:IncludeContentInSingleFile=true | |
- name: Upload Hakuu(Publish) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Hakuu_${{ matrix.project }}_dotnet6_publish | |
path: ${{ github.workspace }}\Hakuu\${{ matrix.project }}\bin\Debug\net6.0-windows\win-x64\publish | |
if-no-files-found: ignore | |