Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Ver 2.0.0-B1: okay, start a github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiroiame-Kusu committed Mar 9, 2024
1 parent 6ab7b93 commit e059094
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "BUG反馈"
description: LocyanFrp的部分行为不符合预期
title: "BUG反馈 <在此处简单描述>"
labels: ["🐛Bug"]

body:
- type: input
id: version
attributes:
label: 当前使用的LocyanFrp版本
description: 设置
validations:
required: true

- type: textarea
id: expectation
attributes:
label: 你的预期
description: 预期LocyanFrp应该的反应
placeholder: |
1. ...
validations:
required: true

- type: textarea
id: in_fact
attributes:
label: 实际上的反应
placeholder: |
1. ...
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/crash_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "崩溃反馈"
description: LocyanFrp发生了莫名其妙的崩溃
title: "崩溃反馈 <在此处简单描述报错信息>"
labels: ["❗ 崩溃"]

body:
- type: input
id: version
attributes:
label: 当前使用的LocyanFrp版本
description: 设置
validations:
required: true

- type: textarea
id: exception
attributes:
label: 崩溃日志
description: |
如何查看崩溃日志
- 打开`./logs/crash/{日期}.log`后复制全文粘贴在此处
- 若崩溃时未产生崩溃日志,则按下win+r键,输入`eventvwr`回车,打开`事件查看器-Windows日志-应用程序`,按`时间与日期`降序,找到最近的来源为`.NET Runtime`的项,复制下方`常规窗口`内的异常信息到此处
validations:
required: true

- type: textarea
id: operation
attributes:
label: 复现操作
description: 简单描述一下如何触发此崩溃
placeholder: |
1. 先这样
2. 再这样
validations:
required: true
59 changes: 59 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build

on:
push:
paths:
- "**.cs"
pull_request:
workflow_dispatch:

jobs:
BuildForWindows:
runs-on: windows-latest
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 }}\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@v3
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 Serein(Publish)
uses: actions/upload-artifact@v3
with:
name: LoCyanFrpDesktop_dotnet6_publish
path: ${{ github.workspace }}\LoCyanFrpDesktop\bin\Debug\net6.0-windows\win-x64\publish
if-no-files-found: ignore


3 changes: 0 additions & 3 deletions LoCyanFrpDesktop/buildinfo.info

This file was deleted.

0 comments on commit e059094

Please sign in to comment.