-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_inc_CI.sh
More file actions
executable file
·61 lines (48 loc) · 2.22 KB
/
Copy pathbuild_inc_CI.sh
File metadata and controls
executable file
·61 lines (48 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 2024 - Modified by MetaX Integrated Circuits (Shanghai) Co., Ltd. All Rights Reserved.
#!/bin/bash
# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
# install requirement.txt
pip install -r requirement.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
# uninstall paddle
pip uninstall paddlepaddle -y
pip uninstall paddle-metax-gpu -y
#!/bin/bash
chown -R $USER:$USER Paddle/
# Step 1: 撤销所有本地修改(已跟踪的文件,不包括新文件)
cd Paddle/
echo "🔄 正在撤销所有本地修改(git checkout .)..."
git checkout develop
git checkout .
echo "🌐 正在拉取远程最新的 dev (develop) 分支代码..."
# 拉取 develop 分支的最新代码(与远程同步)
git pull origin develop
echo "🔗 当前分支: $(git branch --show-current)"
echo "📌 最新 commit hash (短): $(git rev-parse --short HEAD)"
echo "📌 最新 commit 信息:"
git log -1 --oneline
# ——————————————————————————test————————————————————————————————
# git checkout bb09abe
# echo "🔗 当前分支: $(git branch --show-current)"
# echo "📌 最新 commit hash (短): $(git rev-parse --short HEAD)"
# echo "📌 最新 commit 信息:"
# git log -1 --oneline
# ——————————————————————————test————————————————————————————————
# 提示完成
echo "✅ 脚本执行完毕!"
echo "📌 已撤销本地修改,并更新到 Paddle 最新的 develop (dev) 分支代码。"
cd ..
sudo apt-get install -y patchelf
bash change_patch.sh