-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,14 @@ jobs: | |
- name: clone repo | ||
run: | | ||
set -ex | ||
cd ${GITHUB_WORKSPACE} && rm -rf source | ||
cd ${GITHUB_WORKSPACE} && rm -rf DIPU ${REPO}_DIOPI ${REPO} ${REPO}.dev | ||
if [ -n "${{ github.event.pull_request.head.repo.full_name }}" ] && [[ ! "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then | ||
git clone ${{ github.event.pull_request.head.repo.ssh_url }} source | ||
cd ${GITHUB_WORKSPACE}/source && git checkout ${{ github.event.pull_request.head.sha }} | ||
git clone ${{ github.event.pull_request.head.repo.ssh_url }} ${REPO} | ||
cd ${GITHUB_WORKSPACE}/${REPO} && git checkout ${{ github.event.pull_request.head.sha }} | ||
git remote add mainrepo [email protected]:${GITHUB_REPOSITORY}.git | ||
git fetch mainrepo && git merge --no-edit mainrepo/${{ github.base_ref }} | ||
else | ||
git clone ${{ github.event.repository.clone_url }} source && cd source | ||
git clone https://github.com/DeepLink-org/${REPO}.git && cd ${REPO} | ||
if [ $GITHUB_EVENT_NAME == "pull_request" ]; then | ||
echo "${{ github.base_ref }} " | ||
git checkout ${{ github.event.pull_request.head.sha }} && git merge --no-edit origin/${{ github.base_ref }} | ||
|
@@ -42,12 +42,18 @@ jobs: | |
git checkout ${{ github.sha }} | ||
fi | ||
fi | ||
cd ${GITHUB_WORKSPACE}/source/dipu/third_party && rm -rf DIOPI && git clone https://github.com/DeepLink-org/DIOPI.git | ||
rm -rf kineto && git clone --reference /home/autolink/rsync/sourcecode/DeepLink-org/kineto https://github.com/DeepLink-org/kineto.git kineto | ||
cd ../.. && git submodule update --init && cd dipu/third_party/kineto && git submodule update --init | ||
cd ${GITHUB_WORKSPACE}/source/dipu && bash /home/autolink/rsync/sourcecode/update_code.sh | ||
cd ${GITHUB_WORKSPACE}/${REPO}/dipu && rm -rf third_party/kineto | ||
git clone --reference /home/autolink/rsync/sourcecode/DeepLink-org/kineto https://github.com/DeepLink-org/kineto.git third_party/kineto | ||
git submodule update --init && cd third_party/kineto && git submodule update --init | ||
cd ${GITHUB_WORKSPACE} && cp -R ${REPO} ${REPO}_DIOPI | ||
cd ${REPO}/dipu && bash /home/autolink/rsync/sourcecode/update_code.sh | ||
rsync -a /home/autolink/rsync/sourcecode/mmlab_pack . && cd mmlab_pack | ||
bash ../scripts/ci/ci_one_iter.sh clone | ||
# dipu_diopi depend on latest target diopi branch, not diopi in submodule. here assume diopi and dipu use same 'target branch' " github.base_ref " | ||
cd ${GITHUB_WORKSPACE}/${REPO}_DIOPI/dipu/third_party && rm -rf DIOPI && git clone https://github.com/DeepLink-org/DIOPI.git | ||
if [ $GITHUB_EVENT_NAME == "pull_request" ]; then | ||
cd ./DIOPI && git checkout ${{ github.base_ref }} | ||
fi | ||
- name: Rsync to Server | ||
run: | | ||
ssh ${CLUSTER_V100} "mkdir -p ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER}/source ${DEEPLINK_PATH}/${GITHUB_RUN_NUMBER}/source-main" \ | ||
|