Skip to content

Commit 46a99e8

Browse files
PaliCfacebook-github-bot
authored andcommitted
add multipy to distribution path (#79)
Summary: Pull Request resolved: #79 This PR addresses #76 by adding multipy to the path of the headers in the distribution. Test Plan: Imported from OSS Reviewed By: d4l3k Differential Revision: D37424533 Pulled By: PaliC fbshipit-source-id: 4d7589bf848c3bacefde6a7a39da08bfd720f131
1 parent 29b778e commit 46a99e8

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/runtime_nightly.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ jobs:
9797
run: |
9898
cd multipy/runtime/build
9999
conda run -n multipy_runtime_env cmake --install . --prefix "."
100-
- name: create tarball [click me to get a list of files for the nightly release]
101-
shell: bash -l {0}
102-
env:
103-
PYTHON_VERSION: ${{ matrix.python-version }}
104-
run: |
105-
cd multipy/runtime/build/dist
106-
tar -czvf multipy_runtime.tar.gz runtime/
107100
108101
- name: Run unit tests with ABI=${{ matrix.abi }}
109102
if: ${{ matrix.abi }} == 1
@@ -114,6 +107,14 @@ jobs:
114107
cd multipy/runtime/build
115108
./test_deploy
116109
110+
- name: create tarball [click me to get a list of files for the nightly release]
111+
shell: bash -l {0}
112+
env:
113+
PYTHON_VERSION: ${{ matrix.python-version }}
114+
run: |
115+
cd multipy/runtime/build/dist
116+
tar -czvf multipy_runtime.tar.gz multipy/
117+
117118
- name: Update nightly release
118119
if: ${{ matrix.abi }} == 0
119120
uses: pyTooling/Actions/releaser@main

multipy/runtime/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ endif()
121121

122122
install (
123123
DIRECTORY ${CMAKE_SOURCE_DIR}
124-
DESTINATION dist
124+
DESTINATION dist/multipy
125125
FILES_MATCHING
126126
PATTERN "*.h*"
127127
PATTERN "utils.cmake"
@@ -149,5 +149,5 @@ install (
149149
PATTERN "__pycache__" EXCLUDE
150150
)
151151

152-
install(TARGETS torch_deploy DESTINATION dist/runtime/lib)
153-
install(TARGETS torch_deployinterpreter DESTINATION dist/runtime/lib)
152+
install(TARGETS torch_deploy DESTINATION dist/multipy/runtime/lib)
153+
install(TARGETS torch_deployinterpreter DESTINATION dist/multipy/runtime/lib)

0 commit comments

Comments
 (0)