This repository has been archived by the owner on Dec 22, 2024. It is now read-only.
Ver 2.2.0-Alpha.7: Finished URL Protocol Handler. #53
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 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Write Build info | |
shell: cmd | |
run: | | |
cmd /c echo GITHUB ACTION #${{github.run_number}} >${{ github.workspace }}\LoCyanFrpDesktop\buildinfo.info | |
cmd /c echo %date% %time% >>${{ github.workspace }}\LoCyanFrpDesktop\buildinfo.info | |
cmd /c echo ${{github.ref}} ${{github.sha}}>>${{ github.workspace }}\LoCyanFrpDesktop\buildinfo.info | |
- name: DotNet restore | |
run: dotnet restore | |
- name: Build the project(Release) | |
run: dotnet build -p:Configuration=Release "LoCyanFrpDesktop/LoCyanFrpDesktop.csproj" | |
- name: Build the project(Debug) | |
run: dotnet build "LoCyanFrpDesktop/LoCyanFrpDesktop.csproj" | |
- name: Upload LocyanFrp(Release,dotnet6-windows) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LoCyanFrpDesktop_dotnet6 | |
path: ${{ github.workspace }}\LoCyanFrpDesktop\bin\Release\net6.0-windows | |
if-no-files-found: ignore | |
- name: Build the project(Publish) | |
run: | | |
dotnet clean | |
dotnet publish "LoCyanFrpDesktop/LoCyanFrpDesktop.csproj" -f net6.0-windows --no-self-contained -p:PublishSingleFile=true -p:RuntimeIdentifier=win-x64 -p:IncludeContentInSingleFile=true | |
- name: Upload LocyanFrp(Publish) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LoCyanFrpDesktop_dotnet6_publish_SingleFile | |
path: ${{ github.workspace }}\LoCyanFrpDesktop\bin\Debug\net6.0-windows\win-x64\publish | |
if-no-files-found: ignore | |
- name: Build the project(Publish,Single File) | |
run: | | |
dotnet clean | |
dotnet publish "LoCyanFrpDesktop/LoCyanFrpDesktop.csproj" -f net6.0-windows -r win-x64 -p:PublishSingleFile=true -p:RuntimeIdentifier=win-x64 -p:IncludeContentInSingleFile=true -p:Configuration=Release --sc -p:IncludeAllContentForSelfExtract=true -p:EnableCompressionInSingleFile=true | |
- name: Upload LocyanFrp(Publish,Single File) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LoCyanFrpDesktop_dotnet6_publish_SingleFile_WithEnvironment | |
path: ${{ github.workspace }}\LoCyanFrpDesktop\bin\Release\net6.0-windows\win-x64\publish | |
if-no-files-found: ignore | |