Skip to content

Commit ee6f66c

Browse files
authored
Merge pull request #8 from am11/patch-1
Use new arg `--prep`
2 parents 3e4eb9b + 0771030 commit ee6f66c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build .NET SDK
33
on:
44
workflow_dispatch:
55
inputs:
6+
fork:
7+
description: 'dotnet VMR fork name'
8+
required: true
9+
type: string
10+
default: dotnet
611
branch:
712
description: 'dotnet VMR branch name'
813
required: true
@@ -26,16 +31,13 @@ jobs:
2631

2732
- name: Clone repository
2833
run: |
29-
git clone --depth 1 -b ${{ inputs.branch }} https://github.com/dotnet/dotnet
34+
git clone --single-branch --depth 1 -b ${{ inputs.branch }} https://github.com/${{ inputs.fork }}/dotnet
3035
3136
- name: Build
3237
run: |
3338
docker run --platform linux/amd64 --rm -v${{ github.workspace }}/dotnet:/dotnet -w /dotnet -e ROOTFS_DIR=/crossrootfs/riscv64 \
3439
mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-cross-riscv64 \
35-
sh -c '
36-
./prep-source-build.sh &&
37-
./build.sh --clean-while-building -sb --os linux --arch riscv64 -p:DisableDevBuildAsDefaultForSourceOnly=true
38-
'
40+
./build.sh --clean-while-building --prep -sb --os linux --arch riscv64
3941
4042
- name: List assets directory
4143
run: |

0 commit comments

Comments
 (0)