File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 10
10
branches : ["main"]
11
11
12
12
jobs :
13
+
13
14
build :
14
15
runs-on : ubuntu-latest
15
16
Original file line number Diff line number Diff line change 8
8
name : Release
9
9
strategy :
10
10
matrix :
11
- kind : ["linux", "windows"]
11
+ kind : ["linux", "windows", "macos" ]
12
12
include :
13
13
- kind : linux
14
14
os : ubuntu-latest
15
15
target : linux-x64
16
16
- kind : windows
17
17
os : windows-latest
18
18
target : win-x64
19
+ - kind : macos
20
+ os : macos-latest
21
+ target : osx-x64
19
22
runs-on : ${{ matrix.os }}
20
23
21
24
steps :
26
29
uses : actions/setup-dotnet@v4
27
30
with :
28
31
dotnet-version : 8.0.x
32
+
33
+ - name : Build on MacOS
34
+ if : matrix.kind == 'macos'
35
+ run : |
36
+ tag=$(git describe --tags --abbrev=0)
37
+ release_name="CodeLineCounter-$tag-${{ matrix.target }}"
38
+
39
+ dotnet publish CodeLineCounter/CodeLineCounter.csproj --framework net8.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:UseAppHost=true
40
+
41
+ zip -r "$release_name.zip" "$release_name"
42
+
43
+ rm -r "$release_name"
29
44
30
45
- name : Build on Linux
31
46
if : matrix.kind == 'linux'
You can’t perform that action at this time.
0 commit comments