1616 md : ${{ steps.date.outputs.md }}
1717 hm : ${{ steps.date.outputs.hm }}
1818 steps :
19- - name : Checkout
20- uses : actions/checkout@v4
21- with :
22- fetch-depth : 0
2319 - name : Time
2420 id : date
2521 run : |
3026 - name : EchoTime
3127 run : |
3228 echo "The current time is: ${{ steps.date.outputs.time }}"
33-
34- build :
29+ build-AppImage :
3530 runs-on : ubuntu-22.04
3631 needs : time
3732 steps :
@@ -42,32 +37,90 @@ jobs:
4237 - name : Setup dotnet
4338 uses : actions/setup-dotnet@v4
4439 with :
45- dotnet-version : ' 9.x'
40+ dotnet-version : ' 9.x'
4641 - name : Dependency
4742 run : |
48- dotnet tool install -g KuiperZone.PupNet
49- sudo apt-get update
50- sudo apt-get install fuse
43+ dotnet tool install -g KuiperZone.PupNet
44+ sudo apt-get update
45+ sudo apt-get install fuse
5146 - name : Build-AppImage
5247 run : |
5348 cd ./PCL2.Neo
5449 sudo su
5550 pupnet --runtime linux-x64 --kind appimage -o PCL2.Neo.linux.x64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
5651 pupnet --runtime linux-arm64 --kind appimage -o PCL2.Neo.linux.arm64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
52+ - name : UploadArtifacts linux.arm64
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : linux.arm64
56+ path : |
57+ PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.arm64.AppImage
58+ - name : UploadArtifacts linux.x64
59+ uses : actions/upload-artifact@v4
60+ with :
61+ name : linux.x64
62+ path : |
63+ PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.x64.AppImage
64+ build-MacOsApp :
65+ runs-on : ubuntu-22.04
66+ needs : time
67+ steps :
68+ - name : Checkout
69+ uses : actions/checkout@v4
70+ with :
71+ fetch-depth : 0
72+ - name : Setup dotnet
73+ uses : actions/setup-dotnet@v4
74+ with :
75+ dotnet-version : ' 9.x'
76+ - name : Dependency
77+ run : |
78+ dotnet tool install -g KuiperZone.PupNet
79+ sudo apt-get update
80+ sudo apt-get install fuse
5781 - name : Build-MacOsApp
5882 run : |
59- cd ./PCL2.Neo
60- sudo su
61- dotnet restore -r osx-x64
62- dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
63- dotnet restore -r osx-arm64
64- dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
65- cd ./bin/Release/net9.0/
66- cd ./osx-x64/publish/
67- zip -9 -r ../../PCL2.Neo.osx.mac.x64.app.zip ./PCL2.Neo.app
68- cd ../../
69- cd ./osx-arm64/publish/
70- zip -9 -r ../../PCL2.Neo.osx.mac.arm64.app.zip ./PCL2.Neo.app
83+ cd ./PCL2.Neo
84+ sudo su
85+ dotnet restore -r osx-x64
86+ dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
87+ dotnet restore -r osx-arm64
88+ dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
89+ cd ./bin/Release/net9.0/
90+ cd ./osx-x64/publish/
91+ zip -9 -r ../../PCL2.Neo.osx.mac.x64.app.zip ./PCL2.Neo.app
92+ cd ../../
93+ cd ./osx-arm64/publish/
94+ zip -9 -r ../../PCL2.Neo.osx.mac.arm64.app.zip ./PCL2.Neo.app
95+ - name : UploadArtifacts osx.mac.arm64
96+ uses : actions/upload-artifact@v4
97+ with :
98+ name : osx.mac.arm64
99+ path : |
100+ PCL2.Neo/bin/Release/net9.0/PCL2.Neo.osx.mac.arm64.app.zip
101+ - name : UploadArtifacts osx.mac.x64
102+ uses : actions/upload-artifact@v4
103+ with :
104+ name : osx.mac.x64
105+ path : |
106+ PCL2.Neo/bin/Release/net9.0/PCL2.Neo.osx.mac.x64.app.zip
107+ build-WinExe :
108+ runs-on : ubuntu-22.04
109+ needs : time
110+ steps :
111+ - name : Checkout
112+ uses : actions/checkout@v4
113+ with :
114+ fetch-depth : 0
115+ - name : Setup dotnet
116+ uses : actions/setup-dotnet@v4
117+ with :
118+ dotnet-version : ' 9.x'
119+ - name : Dependency
120+ run : |
121+ dotnet tool install -g KuiperZone.PupNet
122+ sudo apt-get update
123+ sudo apt-get install fuse
71124 - name : Build-WinExe
72125 run : |
73126 cd ./PCL2.Neo
@@ -87,45 +140,21 @@ jobs:
87140 cd ../
88141 cd ./win-arm64/
89142 zip -9 -r "../PCL2.Neo.win.arm64.zip" "./publish"
90- - name : UploadArtifacts linux.arm64
91- uses : actions/upload-artifact@v4
92- with :
93- name : linux.arm64
94- path : |
95- PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.arm64.AppImage
96- - name : UploadArtifacts linux.x64
97- uses : actions/upload-artifact@v4
98- with :
99- name : linux.x64
100- path : |
101- PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.x64.AppImage
102143 - name : UploadArtifacts win.x64
103144 uses : actions/upload-artifact@v4
104145 with :
105- name : win.x64
106- path : |
107- PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.x64.zip
146+ name : win.x64
147+ path : |
148+ PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.x64.zip
108149 - name : UploadArtifacts win.x86
109150 uses : actions/upload-artifact@v4
110151 with :
111- name : win.x86
112- path : |
113- PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.x86.zip
152+ name : win.x86
153+ path : |
154+ PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.x86.zip
114155 - name : UploadArtifacts win.arm64
115156 uses : actions/upload-artifact@v4
116157 with :
117- name : win.arm64
118- path : |
119- PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.arm64.zip
120- - name : UploadArtifacts osx.mac.arm64
121- uses : actions/upload-artifact@v4
122- with :
123- name : osx.mac.arm64
124- path : |
125- PCL2.Neo/bin/Release/net9.0/PCL2.Neo.osx.mac.arm64.app.zip
126- - name : UploadArtifacts osx.mac.x64
127- uses : actions/upload-artifact@v4
128- with :
129- name : osx.mac.x64
130- path : |
131- PCL2.Neo/bin/Release/net9.0/PCL2.Neo.osx.mac.x64.app.zip
158+ name : win.arm64
159+ path : |
160+ PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.arm64.zip
0 commit comments