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.
This commit is contained in:
5
.github/actions/setup-build/action.yml
vendored
5
.github/actions/setup-build/action.yml
vendored
@@ -15,11 +15,6 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Setup CPM cache
|
- name: Setup CPM cache
|
||||||
if: inputs.cache-key != ''
|
if: inputs.cache-key != ''
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -64,6 +64,11 @@ jobs:
|
|||||||
preset: ci
|
preset: ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
uses: ./.github/actions/setup-build
|
uses: ./.github/actions/setup-build
|
||||||
with:
|
with:
|
||||||
@@ -113,6 +118,11 @@ jobs:
|
|||||||
preset: ci
|
preset: ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
uses: ./.github/actions/setup-build
|
uses: ./.github/actions/setup-build
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user