File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments