Skip to content

Commit 3ec1c8b

Browse files
committed
[+] build action
1 parent 66ce43e commit 3ec1c8b

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
build_windows_cli:
9+
name: Build MuConvert.exe (win-x64)
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 10.0.x
20+
21+
- name: Restore
22+
run: dotnet restore MuConvert.slnx
23+
24+
- name: Publish (win-x64)
25+
run: >
26+
dotnet publish MuConvert.csproj
27+
-c Release
28+
-r win-x64
29+
-o publish/win-x64
30+
-p:SelfContained=true
31+
-p:UseAppHost=true
32+
-p:PublishSingleFile=true
33+
34+
- name: Upload artifact (MuConvert.exe)
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: MuConvert.exe
38+
path: publish/win-x64/MuConvert.exe
39+

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ MuConvert 是一个支持**Simai与MA2互转**的转谱器。
1717

1818
### 1) 直接使用本程序进行转谱(CLI)
1919

20+
#### 如何下载
21+
- 请到 GitHub Actions 的 [`Build` 工作流页面](https://github.com/MuNET-OSS/MuConvert/actions/workflows/build.yml),打开最新一次分支的构建,在 Artifacts 中下载 `MuConvert.exe即可`
22+
- 下载到的`MuConvert.exe`,按照下文所述的用法,从命令行中直接运行即可。
23+
> 如果你希望自己编译,也可以参考后面“开发者指南”部分的[编译为单文件exe模式](#编译为单文件exe模式)
24+
2025
#### 基本用法
2126

2227
```shell
23-
MuConvert <path> [-l|--levels N[,N...]]
28+
MuConvert.exe <path> [-l|--levels N[,N...]]
2429
```
2530
2631
- **`path`**:输入路径(必填),可以是 `.txt` / `.ma2` / 目录(见下文)

tests/Simai转MA2测试.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class Simai转MA2测试
2020
/// </summary>
2121
public static IEnumerable<object[]> AllCharts(string dataDir)
2222
{
23+
// TODO 再多找一些自制谱加进来吧
2324
var repoRoot = FindRepoRoot();
2425
var testsetRoot = Path.Combine(repoRoot.FullName, "tests", "testset", dataDir);
2526
if (!Directory.Exists(testsetRoot))

0 commit comments

Comments
 (0)