From c4cf5e918f58935370f8d8bf439ad8fba8746cdd Mon Sep 17 00:00:00 2001 From: scawful Date: Fri, 31 Oct 2025 20:28:22 -0400 Subject: [PATCH] chore: refactor CI workflow to streamline code checkout process - Removed the code checkout step from the custom setup action and added it directly in the CI workflow steps for better clarity and control. - This change ensures that the code is checked out before the build environment is set up, improving the overall workflow execution. Benefits: - Enhances the CI process by making the code checkout explicit and easier to manage within the workflow. --- .github/actions/setup-build/action.yml | 5 ----- .github/workflows/ci.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup-build/action.yml b/.github/actions/setup-build/action.yml index 699a4f56..b537cc19 100644 --- a/.github/actions/setup-build/action.yml +++ b/.github/actions/setup-build/action.yml @@ -15,11 +15,6 @@ inputs: runs: using: 'composite' steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Setup CPM cache if: inputs.cache-key != '' uses: actions/cache@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5756469e..499977bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,11 @@ jobs: preset: ci steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup build environment uses: ./.github/actions/setup-build with: @@ -113,6 +118,11 @@ jobs: preset: ci steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup build environment uses: ./.github/actions/setup-build with: