Skip to content

Commit c87697d

Browse files
committed
again
1 parent 260e074 commit c87697d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-native-nuget.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
5656
echo "Download artifact ${{ matrix.artifact }}"
5757
gh run download -R ${{ github.repository }} $RUN_ID --name ${{ matrix.artifact }} --dir paddle_inference_c
58+
echo arch="echo "${{ matrix.rid }}" | awk -F '-' '{print $NF}' >> $GITHUB_ENV
5859
5960
echo "::group::Artifact tree"
6061
ls -lR paddle_inference_c
@@ -119,7 +120,6 @@ jobs:
119120
# ---------- 生成 .props ----------
120121
NORMALIZED_NAME="$(echo "${PKG_ID}" | tr '.-' '_' )_Dlls"
121122
PROPS_FILE="$WORK/build/net45/${PKG_ID}.props"
122-
ARCH="echo "${{ matrix.rid }}" | awk -F '-' '{print $NF}' # get arch from ${{ matrix.rid }}, e.g. win-x64 -> x64, just get whatever after the last '-'
123123
{
124124
cat <<EOF
125125
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
@@ -133,7 +133,7 @@ jobs:
133133
cat <<EOF
134134
<ItemGroup Condition="\$(TargetFrameworkVersion.StartsWith('v4')) Or \$(TargetFramework.StartsWith('net4'))">
135135
<Content Include="\$(${NORMALIZED_NAME})\\${{ matrix.rid }}\\native\\${libname}">
136-
<Link>dll\\${ARCH}\\${libname}</Link>
136+
<Link>dll\\${{ env.arch }}\\${libname}</Link>
137137
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
138138
</Content>
139139
</ItemGroup>

0 commit comments

Comments
 (0)