修复补丁
This commit is contained in:
@@ -43,7 +43,15 @@ jobs:
|
|||||||
- name: Apply Patches
|
- name: Apply Patches
|
||||||
run: |
|
run: |
|
||||||
cd $(go env GOROOT)
|
cd $(go env GOROOT)
|
||||||
for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do patch --verbose -p 1 < "$p"; done
|
for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do
|
||||||
|
# 检查是否已经包含了补丁中的关键改动(例如 runtime.GOOS == "android")
|
||||||
|
if ! grep -q 'runtime.GOOS == "android"' src/os/pidfd_linux.go; then
|
||||||
|
echo "Applying patch: $p"
|
||||||
|
patch -p1 < "$p"
|
||||||
|
else
|
||||||
|
echo "Patch $(basename $p) already applied, skipping."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
- name: Calculate go.sum hash
|
- name: Calculate go.sum hash
|
||||||
id: calc-hash
|
id: calc-hash
|
||||||
|
|||||||
Reference in New Issue
Block a user