66 - " v*"
77
88jobs :
9- build-winform :
10- runs-on : windows -latest
9+ linux :
10+ runs-on : ubuntu -latest
1111 steps :
1212 - uses : actions/checkout@v4
1313
14+ - name : Generate CHANGELOG
15+ id : changelog
16+ uses : requarks/changelog-action@v1
17+ with :
18+ token : ${{ github.token }}
19+ tag : ${{ github.ref_name }}
20+ writeToFile : false
21+ includeInvalidCommits : true
22+
1423 - name : Setup .NET
1524 uses : actions/setup-dotnet@v4
1625 with :
1726 dotnet-version : " 8.0.x"
1827
1928 - name : Restore dependencies
20- run : dotnet restore " ./src/IME WL Converter Win"
29+ run : dotnet restore ./src/ImeWlConverterCmd
2130
2231 - name : Publish
23- run : dotnet publish --configuration Release --output ./publish "./src/IME WL Converter Win"
24-
25- - name : Archive Release
26- run : 7z a -tzip imewlconverter_Windows.zip publish/
32+ run : dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd
2733
28- - name : Update CHANGELOG
29- id : changelog
30- uses : requarks/changelog-action@v1
31- with :
32- token : ${{ github.token }}
33- tag : ${{ github.ref_name }}
34- writeToFile : false
35- includeInvalidCommits : true
34+ - name : Archive
35+ run : tar -czf imewlconverter_Linux.tar.gz publish/*
3636
3737 - uses : ncipollo/release-action@v1
3838 with :
39- artifacts : " imewlconverter_Windows.zip "
39+ artifacts : " imewlconverter_Linux.tar.gz "
4040 allowUpdates : true
4141 body : |
4242 ${{ steps.changelog.outputs.changes }}
4343 token : ${{ secrets.GITHUB_TOKEN }}
4444
45- build-cmd :
45+ macos :
46+ runs-on : macos-latest
4647 strategy :
4748 matrix :
48- os : [ubuntu-latest, macos-latest]
49- runs-on : ${{ matrix.os }}
49+ arch : [x64, arm64]
5050 steps :
5151 - uses : actions/checkout@v4
5252
53+ - name : Generate CHANGELOG
54+ id : changelog
55+ uses : requarks/changelog-action@v1
56+ with :
57+ token : ${{ github.token }}
58+ tag : ${{ github.ref_name }}
59+ writeToFile : false
60+ includeInvalidCommits : true
61+
5362 - name : Setup .NET
5463 uses : actions/setup-dotnet@v4
5564 with :
@@ -59,59 +68,50 @@ jobs:
5968 run : dotnet restore ./src/ImeWlConverterCmd
6069
6170 - name : Publish
62- run : dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd
63-
64- - name : Archive Release
65- run : tar -czf imewlconverter_${{ runner.os }}.tar.gz publish/*
71+ run : dotnet publish --configuration Release --output ./publish-${{ matrix.arch }} ./src/ImeWlConverterCmd -a ${{ matrix.arch }}
6672
67- - name : Update CHANGELOG
68- id : changelog
69- uses : requarks/changelog-action@v1
70- with :
71- token : ${{ github.token }}
72- tag : ${{ github.ref_name }}
73- writeToFile : false
74- includeInvalidCommits : true
73+ - name : Archive
74+ run : tar -czf imewlconverter_macOS-${{ matrix.arch }}.tar.gz publish-${{ matrix.arch }}/*
7575
7676 - uses : ncipollo/release-action@v1
7777 with :
78- artifacts : " imewlconverter_ ${{ runner.os }}.tar.gz"
78+ artifacts : " imewlconverter_macOS- ${{ matrix.arch }}.tar.gz"
7979 allowUpdates : true
8080 body : |
8181 ${{ steps.changelog.outputs.changes }}
8282 token : ${{ secrets.GITHUB_TOKEN }}
8383
84- build-mac-arm64 :
85- runs-on : macos -latest
84+ windows :
85+ runs-on : windows -latest
8686 steps :
8787 - uses : actions/checkout@v4
8888
89+ - name : Generate CHANGELOG
90+ id : changelog
91+ uses : requarks/changelog-action@v1
92+ with :
93+ token : ${{ github.token }}
94+ tag : ${{ github.ref_name }}
95+ writeToFile : false
96+ includeInvalidCommits : true
97+
8998 - name : Setup .NET
9099 uses : actions/setup-dotnet@v4
91100 with :
92101 dotnet-version : " 8.0.x"
93102
94103 - name : Restore dependencies
95- run : dotnet restore ./src/ImeWlConverterCmd
104+ run : dotnet restore " ./src/IME WL Converter Win"
96105
97106 - name : Publish
98- run : dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd -a arm64
99-
100- - name : Archive Release
101- run : tar -czf imewlconverter_${{ runner.os }}-aarch64.tar.gz publish/*
107+ run : dotnet publish --configuration Release --output ./publish "./src/IME WL Converter Win"
102108
103- - name : Update CHANGELOG
104- id : changelog
105- uses : requarks/changelog-action@v1
106- with :
107- token : ${{ github.token }}
108- tag : ${{ github.ref_name }}
109- writeToFile : false
110- includeInvalidCommits : true
109+ - name : Archive
110+ run : 7z a -tzip imewlconverter_Windows.zip publish/
111111
112112 - uses : ncipollo/release-action@v1
113113 with :
114- artifacts : " imewlconverter_${{ runner.os }}-aarch64.tar.gz "
114+ artifacts : " imewlconverter_Windows.zip "
115115 allowUpdates : true
116116 body : |
117117 ${{ steps.changelog.outputs.changes }}
0 commit comments