File tree Expand file tree Collapse file tree 12 files changed +308
-146
lines changed
Expand file tree Collapse file tree 12 files changed +308
-146
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ jobs:
109109
110110 - name: Run tests
111111 run: |
112- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
112+ . /entrypoint.sh
113113 cd $GITHUB_WORKSPACE/phlex-build
114114 ctest -j $(nproc)
115115` ` `
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ Refactored GitHub Actions workflows to use composite actions for better maintain
1010
1111** Location** : ` .github/actions/setup-build-env/action.yaml `
1212
13- ** Purpose** : Sets up the build environment by sourcing entrypoint script and creating directories
13+ ** Purpose** : Sets up the build environment by sourcing the container entrypoint script and creating directories
1414
1515** Provides** :
1616
17- - Sources ` ci /entrypoint.sh`
17+ - Sources ` /entrypoint.sh `
1818- Creates build directory
1919- Outputs source and build directory paths
2020
Original file line number Diff line number Diff line change 2424 steps :
2525 - shell : bash
2626 run : |
27- # Source the entrypoint script
28- . "$GITHUB_WORKSPACE/$SOURCE_PATH/ci/ entrypoint.sh"
27+ # Source the container entrypoint script
28+ . / entrypoint.sh
2929
3030 cd "$GITHUB_WORKSPACE/$BUILD_PATH"
3131
Original file line number Diff line number Diff line change 4444 steps :
4545 - shell : bash
4646 run : |
47- # Source the entrypoint script
48- . "$GITHUB_WORKSPACE/$SOURCE_PATH/ci/ entrypoint.sh"
47+ # Source the container entrypoint script
48+ . / entrypoint.sh
4949 cd "$GITHUB_WORKSPACE/$BUILD_PATH"
5050 SOURCE_DIR="$GITHUB_WORKSPACE/$SOURCE_PATH"
5151 echo "Configuring with CMake preset: $PRESET"
Original file line number Diff line number Diff line change 2525 - id : setup
2626 shell : bash
2727 run : |
28- # Source the entrypoint script
29- . "$GITHUB_WORKSPACE/$SOURCE_PATH/ci/ entrypoint.sh"
28+ # Source the container entrypoint script
29+ . / entrypoint.sh
3030
3131 # Create and export build directory
3232 mkdir -p "$GITHUB_WORKSPACE/$BUILD_PATH"
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ jobs:
125125 PHLEX_TIDY_CHECKS : ${{ needs.check_comment_trigger.outputs.tidy_checks }}
126126 shell : bash
127127 run : |
128- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
128+ . /entrypoint.sh
129129 cd $GITHUB_WORKSPACE/phlex-build
130130
131131 echo "Running clang-tidy checks using CMake target..."
Original file line number Diff line number Diff line change 7878 env :
7979 PHLEX_TIDY_CHECKS : ${{ needs.check.outputs.tidy_checks }}
8080 run : |
81- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
81+ . /entrypoint.sh
8282 cd $GITHUB_WORKSPACE/phlex-build
8383
8484 echo "Applying clang-tidy fixes using CMake target..."
Original file line number Diff line number Diff line change 7474
7575 - name : Test
7676 run : |
77- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
77+ . /entrypoint.sh
7878 cd $GITHUB_WORKSPACE/phlex-build
7979 ctest -j $(nproc)
Original file line number Diff line number Diff line change 5757
5858 - name : Test
5959 run : |
60- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
60+ . /entrypoint.sh
6161 cd $GITHUB_WORKSPACE/phlex-build
6262 ctest -j $(nproc) || true
6363
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ jobs:
156156
157157 - name : Run tests with coverage
158158 run : |
159- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
159+ . /entrypoint.sh
160160 cd $GITHUB_WORKSPACE/phlex-build
161161 PROFILE_ROOT="$GITHUB_WORKSPACE/phlex-build/test/profraw"
162162 echo "Cleaning LLVM profile directory: $PROFILE_ROOT"
@@ -170,7 +170,7 @@ jobs:
170170 if : ${{ steps.coverage_options.outputs.compiler == 'gcc' }}
171171 shell : bash
172172 run : |
173- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
173+ . /entrypoint.sh
174174 cd $GITHUB_WORKSPACE/phlex-build
175175 echo "Using GCC/gcovr/lcov bundled coverage target."
176176 cmake --build . --target coverage-gcov -v
@@ -198,7 +198,7 @@ jobs:
198198 if : ${{ steps.coverage_options.outputs.compiler == 'clang' }}
199199 shell : bash
200200 run : |
201- . $GITHUB_WORKSPACE/phlex-src/ci /entrypoint.sh
201+ . /entrypoint.sh
202202 cd $GITHUB_WORKSPACE/phlex-build
203203 echo "Using Clang/llvm-cov coverage targets."
204204 cmake --build . --target coverage-llvm -v
You can’t perform that action at this time.
0 commit comments