Skip to content

Commit b947780

Browse files
actions: build assembly-csharp with specified RID
1 parent 7c11839 commit b947780

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
mkdir Vanilla
5252
cd ./Vanilla
5353
tar -xzf ../hk-binary-archives/${{ env.HK_VERSION }}/managed.${{ matrix.platform }}.tar.gz
54+
55+
- name: Set RID
56+
run: |
57+
case "${{ matrix.platform }}" in
58+
windows) echo "RID=win-x64" >> $GITHUB_ENV ;;
59+
linux) echo "RID=linux-x64" >> $GITHUB_ENV ;;
60+
macos) echo "RID=osx-x64" >> $GITHUB_ENV ;;
61+
esac
5462
5563
- uses: actions/setup-dotnet@v4
5664
with:
@@ -67,7 +75,7 @@ jobs:
6775
dotnet build PrePatcher -o PrePatcher/Output -p:Configuration=Release
6876
- name: Build Assembly-CSharp
6977
run: |
70-
dotnet build Assembly-CSharp -p:Configuration=Release
78+
dotnet build Assembly-CSharp --runtime $RID -p:Configuration=Release
7179
- name: Upload Binary
7280
if: inputs.upload-artifact
7381
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)