From 05acafa10f1d6f01f4c1ab5a902c3ebe42d90baa Mon Sep 17 00:00:00 2001 From: xopenwrt Date: Mon, 29 Jun 2026 21:41:26 +0800 Subject: [PATCH] fix openwrt clone workdir --- .github/workflows/X-x86_64_X.yml | 2 +- .github/workflows/X-x86_64_Y.yml | 2 +- .github/workflows/X-x86_64_Z.yml | 2 +- AI_CHANGELOG_OPENWRT_CLONE_WORKDIR.md | 12 ++++++++++++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 AI_CHANGELOG_OPENWRT_CLONE_WORKDIR.md diff --git a/.github/workflows/X-x86_64_X.yml b/.github/workflows/X-x86_64_X.yml index 2f9d91f..6fafed8 100644 --- a/.github/workflows/X-x86_64_X.yml +++ b/.github/workflows/X-x86_64_X.yml @@ -159,7 +159,7 @@ jobs: - name: Clone Openwrt Source Code run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt + git clone -b $REPO_BRANCH $REPO_URL /workdir/openwrt ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - name: Accelerate diff --git a/.github/workflows/X-x86_64_Y.yml b/.github/workflows/X-x86_64_Y.yml index c1a4f84..4026506 100644 --- a/.github/workflows/X-x86_64_Y.yml +++ b/.github/workflows/X-x86_64_Y.yml @@ -156,7 +156,7 @@ jobs: - name: Clone Openwrt Source Code run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt + git clone -b $REPO_BRANCH $REPO_URL /workdir/openwrt ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - name: Accelerate diff --git a/.github/workflows/X-x86_64_Z.yml b/.github/workflows/X-x86_64_Z.yml index 114920e..530f9c2 100644 --- a/.github/workflows/X-x86_64_Z.yml +++ b/.github/workflows/X-x86_64_Z.yml @@ -155,7 +155,7 @@ jobs: - name: Clone Openwrt Source Code run: | - git clone -b $REPO_BRANCH $REPO_URL openwrt + git clone -b $REPO_BRANCH $REPO_URL /workdir/openwrt ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt - name: Accelerate diff --git a/AI_CHANGELOG_OPENWRT_CLONE_WORKDIR.md b/AI_CHANGELOG_OPENWRT_CLONE_WORKDIR.md new file mode 100644 index 0000000..e7233c6 --- /dev/null +++ b/AI_CHANGELOG_OPENWRT_CLONE_WORKDIR.md @@ -0,0 +1,12 @@ +# AI Modification Log: OpenWrt Clone Workdir + +Date: 2026-06-29 + +## Change + +- Updated X/Y/Z workflows to clone OpenWrt source into `/workdir/openwrt`. +- Kept `$GITHUB_WORKSPACE/openwrt` as a symlink to `/workdir/openwrt` for existing later steps. + +## Reason + +The workflows created `/workdir` but cloned into the workspace. The symlink then pointed at `/workdir/openwrt`, which did not contain the clone. Cloning directly into `/workdir/openwrt` makes the workspace symlink and subsequent `openwrt` paths consistent.