fix(ci): remove unnecessary build configuration flag in CI and release workflows
- Simplified CMake build commands in CI and release workflows by removing the redundant `--config ${{ env.BUILD_TYPE }}` flag.
- Updated test commands to eliminate the build configuration flag, streamlining the testing process.
Benefits:
- Enhances clarity and reduces potential confusion in build and test commands, improving overall workflow efficiency.
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -302,7 +302,7 @@ jobs:
|
||||
CORES=2
|
||||
fi
|
||||
echo "Using $CORES parallel jobs"
|
||||
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $CORES 2>&1 | tee build.log
|
||||
cmake --build build --parallel $CORES 2>&1 | tee build.log
|
||||
|
||||
- name: Report Build Failure
|
||||
if: failure() && steps.build.outcome == 'failure'
|
||||
@@ -396,7 +396,7 @@ jobs:
|
||||
working-directory: build
|
||||
run: |
|
||||
echo "Running stable test suite..."
|
||||
ctest --build-config ${{ env.BUILD_TYPE }} --output-on-failure -j1 \
|
||||
ctest --output-on-failure -j1 \
|
||||
-L "stable" \
|
||||
--output-junit stable_test_results.xml 2>&1 | tee ../stable_test.log || true
|
||||
|
||||
@@ -406,7 +406,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: |
|
||||
echo "Running experimental test suite (informational only)..."
|
||||
ctest --build-config ${{ env.BUILD_TYPE }} --output-on-failure --parallel \
|
||||
ctest --output-on-failure --parallel \
|
||||
-L "experimental" \
|
||||
--output-junit experimental_test_results.xml 2>&1 | tee ../experimental_test.log
|
||||
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -326,7 +326,7 @@ jobs:
|
||||
CORES=2
|
||||
fi
|
||||
echo "Using $CORES parallel jobs"
|
||||
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel $CORES 2>&1 | tee build.log
|
||||
cmake --build build --parallel $CORES 2>&1 | tee build.log
|
||||
|
||||
- name: "Report Build Failure"
|
||||
if: failure() && steps.build.outcome == 'failure'
|
||||
|
||||
Reference in New Issue
Block a user