Skip to content

Commit 764a2a5

Browse files
committed
fix/build.yml
fix the error settings in build.yml file
1 parent d1254ec commit 764a2a5

File tree

1 file changed

+80
-67
lines changed

1 file changed

+80
-67
lines changed

.github/workflows/build.yml

Lines changed: 80 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ jobs:
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: |
@@ -30,8 +26,7 @@ jobs:
3026
- name: EchoTime
3127
run: |
3228
echo "The current time is: ${{ steps.date.outputs.time }}"
33-
34-
pre-setup:
29+
build-AppImage:
3530
runs-on: ubuntu-22.04
3631
needs: time
3732
steps:
@@ -42,44 +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
51-
build-AppImage:
52-
runs-on: ubuntu-22.04
53-
needs: [time, pre-setup]
54-
steps:
43+
dotnet tool install -g KuiperZone.PupNet
44+
sudo apt-get update
45+
sudo apt-get install fuse
5546
- name: Build-AppImage
5647
run: |
5748
cd ./PCL2.Neo
5849
sudo su
5950
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 }}
6051
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
6164
build-MacOsApp:
6265
runs-on: ubuntu-22.04
63-
needs: [time, pre-setup]
66+
needs: time
6467
steps:
65-
- name: Build-MacOsApp
66-
run: |
67-
cd ./PCL2.Neo
68-
sudo su
69-
dotnet restore -r osx-x64
70-
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
71-
dotnet restore -r osx-arm64
72-
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:SelfContained=true -p:TrimMode=link
73-
cd ./bin/Release/net9.0/
74-
cd ./osx-x64/publish/
75-
zip -9 -r ../../PCL2.Neo.osx.mac.x64.app.zip ./PCL2.Neo.app
76-
cd ../../
77-
cd ./osx-arm64/publish/
78-
zip -9 -r ../../PCL2.Neo.osx.mac.arm64.app.zip ./PCL2.Neo.app
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
81+
- name: Build-MacOsApp
82+
run: |
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
79107
build-WinExe:
80108
runs-on: ubuntu-22.04
81-
needs: [time, pre-setup]
109+
needs: time
82110
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
83124
- name: Build-WinExe
84125
run: |
85126
cd ./PCL2.Neo
@@ -99,49 +140,21 @@ jobs:
99140
cd ../
100141
cd ./win-arm64/
101142
zip -9 -r "../PCL2.Neo.win.arm64.zip" "./publish"
102-
upload:
103-
runs-on: ubuntu-22.04
104-
needs: [build-AppImage, build-MacOsApp, build-WinExe]
105-
steps:
106-
- name: UploadArtifacts linux.arm64
107-
uses: actions/upload-artifact@v4
108-
with:
109-
name: linux.arm64
110-
path: |
111-
PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.arm64.AppImage
112-
- name: UploadArtifacts linux.x64
113-
uses: actions/upload-artifact@v4
114-
with:
115-
name: linux.x64
116-
path: |
117-
PCL2.Neo/Deploy/OUT/PCL2.Neo.linux.x64.AppImage
118143
- name: UploadArtifacts win.x64
119144
uses: actions/upload-artifact@v4
120145
with:
121-
name: win.x64
122-
path: |
123-
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
124149
- name: UploadArtifacts win.x86
125150
uses: actions/upload-artifact@v4
126151
with:
127-
name: win.x86
128-
path: |
129-
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
130155
- name: UploadArtifacts win.arm64
131156
uses: actions/upload-artifact@v4
132157
with:
133-
name: win.arm64
134-
path: |
135-
PCL2.Neo/bin/Release/net9.0/PCL2.Neo.win.arm64.zip
136-
- name: UploadArtifacts osx.mac.arm64
137-
uses: actions/upload-artifact@v4
138-
with:
139-
name: osx.mac.arm64
140-
path: |
141-
PCL2.Neo/bin/Release/net9.0/PCL2.Neo.osx.mac.arm64.app.zip
142-
- name: UploadArtifacts osx.mac.x64
143-
uses: actions/upload-artifact@v4
144-
with:
145-
name: osx.mac.x64
146-
path: |
147-
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

Comments
 (0)