|
15 | 15 | SDK_VERSION: 8.0.100-rtm.23551.6 |
16 | 16 | ASPNETCORE_VERSION: 8.0.0-rtm.23531.12 |
17 | 17 | ROOTFS_DIR: /crossrootfs/riscv64 |
18 | | - |
| 18 | + volumes: |
| 19 | + - ${{ github.workspace }}/output:${{ github.workspace }}/output |
| 20 | + |
19 | 21 | steps: |
20 | 22 | - name: Clone repositories |
21 | 23 | run: | |
|
37 | 39 | mkdir -p ${OUTPUTDIR} |
38 | 40 |
|
39 | 41 | cd runtime |
40 | | - ./build.sh --ci -c Release --cross --arch riscv64 /p:OfficialBuildId=$(version_build_id ${RUNTIME_VERSION}) |
| 42 | + ./build.sh --ci -c Release --cross --arch riscv64 |
41 | 43 | cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Host.linux-riscv64.*.nupkg ${PACKAGESDIR} |
42 | 44 | cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Runtime.linux-riscv64.*.nupkg ${PACKAGESDIR} |
43 | 45 | mkdir -p ${DOWNLOADDIR}/Runtime/${RUNTIME_VERSION} |
|
55 | 57 | - name: Build SDK |
56 | 58 | run: | |
57 | 59 | cd sdk |
58 | | - ./build.sh --pack --ci -c Release /p:Architecture=riscv64 /p:OfficialBuildId=$(version_build_id ${SDK_VERSION}) |
| 60 | + ./build.sh --pack --ci -c Release /p:Architecture=riscv64 |
59 | 61 | mkdir -p ${DOWNLOADDIR}/Sdk/${SDK_VERSION} |
60 | 62 | cp artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip ${DOWNLOADDIR}/Sdk/${SDK_VERSION}/dotnet-toolset-internal-${SDK_VERSION}.zip |
61 | 63 | cp artifacts/packages/Release/Shipping/Microsoft.DotNet.Common.*.nupkg ${PACKAGESDIR} |
|
87 | 89 | sed -i s"|<clear />|<clear />\n<add key='local' value='${PACKAGESDIR}' />|" NuGet.config |
88 | 90 | ./build.sh --ci -c Release -a riscv64 /p:HostRid=linux-x64 /p:PublicBaseURL=file://${DOWNLOADDIR}/ |
89 | 91 | cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz ${OUTPUTDIR} |
| 92 | + cp artifacts/packages/Release/Shipping/dotnet-sdk-*-linux-riscv64.tar.gz.sha512 ${OUTPUTDIR} |
90 | 93 |
|
91 | 94 | - name: Upload .NET |
92 | | - uses: actions/upload-artifact@v2 |
| 95 | + uses: actions/upload-artifact@v4 |
93 | 96 | with: |
94 | 97 | name: dotnet-sdk-linux-riscv64 |
95 | | - path: ${OUTPUTDIR}/dotnet-sdk-*-linux-riscv64.tar.gz |
| 98 | + path: "${{ github.workspace }}/output/dotnet-sdk-*-linux-riscv64.tar.gz*" |
0 commit comments