Skip to content

Commit

Permalink
remove: 不要なファイルをリリースに入れないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Sep 3, 2024
1 parent f58c8d1 commit 2405aa6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ jobs:
echo "Unknown target found : ${{ matrix.artifact_name }}"
return 1
fi
# PDBファイル, Privacy.md, include/は不要なので省く
if [ ${{ runner.os }} = Windows ]; then
# https://github.com/microsoft/onnxruntime/blob/v1.16.3/tools/ci_build/github/azure-pipelines/templates/c-api-artifacts-package-and-publish-steps-windows.yml#L34-L72
# ただし、ortクレートには.pdbとinclude/は不要なので入れない。
mkdir -p ./${{ matrix.result_dir }}/${{ matrix.artifact_name }}/lib
git rev-parse HEAD > ./${{ matrix.result_dir }}/${{ matrix.artifact_name }}/GIT_COMMIT_ID
cp ./{docs/Privacy.md,LICENSE,README.md,ThirdPartyNotices.txt,VERSION_NUMBER} \
cp ./{LICENSE,README.md,ThirdPartyNotices.txt,VERSION_NUMBER} \
./${{ matrix.result_dir }}/${{ matrix.artifact_name }}/
cp ./${{ matrix.result_dir }}/${{ matrix.release_config }}/onnxruntime.{dll,lib} \
./${{ matrix.result_dir }}/${{ matrix.artifact_name }}/lib/
Expand All @@ -441,6 +441,7 @@ jobs:
-c ${{ matrix.release_config }} \
-s "$(pwd)" \
-t "$(git rev-parse HEAD)"
rm -r ${{ matrix.result_dir }}/${{ matrix.artifact_name }}/{Privacy.md,include}
fi
mv ${{ matrix.result_dir }}/${{ matrix.artifact_name }} ./artifact/
Expand Down

0 comments on commit 2405aa6

Please sign in to comment.