|
29 | 29 | run: | |
30 | 30 | echo "The current time is: ${{ steps.date.outputs.time }}" |
31 | 31 |
|
32 | | - linux: |
33 | | - runs-on: ubuntu-20.04 |
34 | | - needs: time |
35 | | - steps: |
36 | | - - name: Checkout |
37 | | - uses: actions/checkout@v3 |
38 | | - with: |
39 | | - fetch-depth: 0 |
40 | | - # - name: Time |
41 | | - # id: date |
42 | | - # run: | |
43 | | - # echo "${{ needs.time.outputs.v }}" > ./YMCL/Public/Texts/DateTime.txt |
44 | | - # echo "Version is ${{ needs.time.outputs.v }}" |
45 | | - - name: Dependency |
46 | | - run: | |
47 | | - dotnet tool install -g KuiperZone.PupNet |
48 | | - sudo apt-get update |
49 | | - sudo apt-get install fuse |
50 | | - - name: Build-AppImage |
51 | | - run: | |
52 | | - cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop |
53 | | - sudo su |
54 | | - pupnet --runtime linux-x64 --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.x64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }} |
55 | | - pupnet --runtime linux-arm --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.arm.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }} |
56 | | - pupnet --runtime linux-arm64 --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.arm64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }} |
57 | | - - name: Build-MacOsApp |
58 | | - run: | |
59 | | - cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop |
60 | | - sudo su |
61 | | - dotnet restore -r osx-x64 |
62 | | - dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release -p:SelfContained=true |
63 | | - dotnet restore -r osx-arm64 |
64 | | - dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:SelfContained=true |
65 | | - cd ./bin/Release/net8.0/ |
66 | | - cd ./osx-x64/publish/ |
67 | | - zip -9 -r ../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.osx.mac.x64.app.zip ./REC.app |
68 | | - cd ../../ |
69 | | - cd ./osx-arm64/publish/ |
70 | | - zip -9 -r ../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.osx.mac.arm64.app.zip ./REC.app |
71 | | - - name: Build-WinExe |
72 | | - run: | |
73 | | - cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop |
74 | | - sudo su |
75 | | - dotnet publish -r win-x86 --self-contained true -p:PublishSingleFile=true |
76 | | - dotnet publish -r win-x64 --self-contained true -p:PublishSingleFile=true |
77 | | - dotnet publish -r win-arm64 --self-contained true -p:PublishSingleFile=true |
78 | | - mv ./bin/Release/net8.0/win-x86/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-x86/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe |
79 | | - mv ./bin/Release/net8.0/win-x64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-x64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe |
80 | | - mv ./bin/Release/net8.0/win-arm64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-arm64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe |
81 | | - cd ./bin/Release/net8.0/ |
82 | | - cd ./win-x86/publish/ |
83 | | - zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe" |
84 | | - cd ../../ |
85 | | - cd ./win-x64/publish/ |
86 | | - zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe" |
87 | | - cd ../../ |
88 | | - cd ./win-arm64/publish/ |
89 | | - zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe" |
90 | | - - name: UploadArtifacts |
91 | | - uses: actions/upload-artifact@v3 |
92 | | - with: |
93 | | - name: linux-artifacts |
94 | | - path: | |
95 | | - ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/Deploy/OUT/* |
96 | | - ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/bin/Release/net8.0/*.zip |
97 | | -
|
98 | 32 | win: |
99 | 33 | runs-on: windows-latest |
100 | 34 | needs: time |
@@ -124,28 +58,23 @@ jobs: |
124 | 58 | pupnet -r win-x86 -k setup -y -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win.x86.installer.exe --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }} |
125 | 59 | pupnet -r win-arm64 -k setup -y -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win.arm64.installer.exe --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }} |
126 | 60 | - name: UploadArtifacts |
127 | | - uses: actions/upload-artifact@v3 |
| 61 | + uses: actions/upload-artifact@v4 |
128 | 62 | with: |
129 | 63 | name: win-artifacts |
130 | 64 | path: | |
131 | 65 | ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/Deploy/OUT/* |
132 | 66 |
|
133 | 67 | publish: |
134 | | - needs: [linux, win, time] |
| 68 | + needs: [win, time] |
135 | 69 | runs-on: ubuntu-latest |
136 | 70 | steps: |
137 | 71 | - name: Time |
138 | 72 | id: gdate |
139 | 73 | run: | |
140 | 74 | echo "date=$(date +'%Y-%m-%d.%H-%M-%S')" >> $GITHUB_OUTPUT |
141 | 75 | echo "title=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_OUTPUT |
142 | | - - name: Download-LinuxArtifacts |
143 | | - uses: actions/download-artifact@v3 |
144 | | - with: |
145 | | - name: linux-artifacts |
146 | | - path: ./Round.NET.AvaloniaApp.EncodeCalculator/Release/ |
147 | 76 | - name: Download-WindowsArtifacts |
148 | | - uses: actions/download-artifact@v3 |
| 77 | + uses: actions/download-artifact@v4 |
149 | 78 | with: |
150 | 79 | name: win-artifacts |
151 | 80 | path: ./Round.NET.AvaloniaApp.EncodeCalculator/Release/ |
|
161 | 90 | prerelease: false |
162 | 91 | files: | |
163 | 92 | Round.NET.AvaloniaApp.EncodeCalculator/Release/*.exe |
164 | | - Round.NET.AvaloniaApp.EncodeCalculator/Release/Deploy/OUT/*.AppImage |
165 | 93 | Round.NET.AvaloniaApp.EncodeCalculator/Release/bin/Release/net8.0/*.zip |
0 commit comments