Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 3d955b5

Browse files
authored
Update main.yaml (#2)
1 parent 6c4981a commit 3d955b5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/main.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
SDK_VERSION: 8.0.100-rtm.23551.6
1616
ASPNETCORE_VERSION: 8.0.0-rtm.23531.12
1717
ROOTFS_DIR: /crossrootfs/riscv64
18-
18+
volumes:
19+
- ${{ github.workspace }}/output:${{ github.workspace }}/output
20+
1921
steps:
2022
- name: Clone repositories
2123
run: |
@@ -37,7 +39,7 @@ jobs:
3739
mkdir -p ${OUTPUTDIR}
3840
3941
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
4143
cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Host.linux-riscv64.*.nupkg ${PACKAGESDIR}
4244
cp artifacts/packages/Release/Shipping/Microsoft.NETCore.App.Runtime.linux-riscv64.*.nupkg ${PACKAGESDIR}
4345
mkdir -p ${DOWNLOADDIR}/Runtime/${RUNTIME_VERSION}
@@ -55,7 +57,7 @@ jobs:
5557
- name: Build SDK
5658
run: |
5759
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
5961
mkdir -p ${DOWNLOADDIR}/Sdk/${SDK_VERSION}
6062
cp artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip ${DOWNLOADDIR}/Sdk/${SDK_VERSION}/dotnet-toolset-internal-${SDK_VERSION}.zip
6163
cp artifacts/packages/Release/Shipping/Microsoft.DotNet.Common.*.nupkg ${PACKAGESDIR}
@@ -87,9 +89,10 @@ jobs:
8789
sed -i s"|<clear />|<clear />\n<add key='local' value='${PACKAGESDIR}' />|" NuGet.config
8890
./build.sh --ci -c Release -a riscv64 /p:HostRid=linux-x64 /p:PublicBaseURL=file://${DOWNLOADDIR}/
8991
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}
9093
9194
- name: Upload .NET
92-
uses: actions/upload-artifact@v2
95+
uses: actions/upload-artifact@v4
9396
with:
9497
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

Comments
 (0)