6
6
- " v*"
7
7
8
8
jobs :
9
- build-winform :
10
- runs-on : windows -latest
9
+ linux :
10
+ runs-on : ubuntu -latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
13
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
+
14
23
- name : Setup .NET
15
24
uses : actions/setup-dotnet@v4
16
25
with :
17
26
dotnet-version : " 8.0.x"
18
27
19
28
- name : Restore dependencies
20
- run : dotnet restore " ./src/IME WL Converter Win"
29
+ run : dotnet restore ./src/ImeWlConverterCmd
21
30
22
31
- 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
27
33
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/*
36
36
37
37
- uses : ncipollo/release-action@v1
38
38
with :
39
- artifacts : " imewlconverter_Windows.zip "
39
+ artifacts : " imewlconverter_Linux.tar.gz "
40
40
allowUpdates : true
41
41
body : |
42
42
${{ steps.changelog.outputs.changes }}
43
43
token : ${{ secrets.GITHUB_TOKEN }}
44
44
45
- build-cmd :
45
+ macos :
46
+ runs-on : macos-latest
46
47
strategy :
47
48
matrix :
48
- os : [ubuntu-latest, macos-latest]
49
- runs-on : ${{ matrix.os }}
49
+ arch : [x64, arm64]
50
50
steps :
51
51
- uses : actions/checkout@v4
52
52
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
+
53
62
- name : Setup .NET
54
63
uses : actions/setup-dotnet@v4
55
64
with :
@@ -59,59 +68,50 @@ jobs:
59
68
run : dotnet restore ./src/ImeWlConverterCmd
60
69
61
70
- 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 }}
66
72
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 }}/*
75
75
76
76
- uses : ncipollo/release-action@v1
77
77
with :
78
- artifacts : " imewlconverter_ ${{ runner.os }}.tar.gz"
78
+ artifacts : " imewlconverter_macOS- ${{ matrix.arch }}.tar.gz"
79
79
allowUpdates : true
80
80
body : |
81
81
${{ steps.changelog.outputs.changes }}
82
82
token : ${{ secrets.GITHUB_TOKEN }}
83
83
84
- build-mac-arm64 :
85
- runs-on : macos -latest
84
+ windows :
85
+ runs-on : windows -latest
86
86
steps :
87
87
- uses : actions/checkout@v4
88
88
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
+
89
98
- name : Setup .NET
90
99
uses : actions/setup-dotnet@v4
91
100
with :
92
101
dotnet-version : " 8.0.x"
93
102
94
103
- name : Restore dependencies
95
- run : dotnet restore ./src/ImeWlConverterCmd
104
+ run : dotnet restore " ./src/IME WL Converter Win"
96
105
97
106
- 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"
102
108
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/
111
111
112
112
- uses : ncipollo/release-action@v1
113
113
with :
114
- artifacts : " imewlconverter_${{ runner.os }}-aarch64.tar.gz "
114
+ artifacts : " imewlconverter_Windows.zip "
115
115
allowUpdates : true
116
116
body : |
117
117
${{ steps.changelog.outputs.changes }}
0 commit comments