Skip to content

Commit 5531322

Browse files
committed
CI: LLVM toolchain build-only validation
This configures CI to use LLVM toolchain for build validation only: - LLVM: Build kernel and library (compilation verification) - LLVM: Skip crash tests and functional tests - GNU: Full test suite (build + crash tests + functional tests)
1 parent f9ca4a6 commit 5531322

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: Run All Apps
5252
id: test
5353
continue-on-error: true
54+
if: matrix.toolchain == 'gnu'
5455
run: |
5556
output=$(.ci/run-app-tests.sh 2>&1) || true
5657
echo "TEST_OUTPUT<<EOF" >> $GITHUB_OUTPUT
@@ -62,6 +63,7 @@ jobs:
6263
- name: Run Functional Tests
6364
id: functional_test
6465
continue-on-error: true
66+
if: matrix.toolchain == 'gnu'
6567
run: |
6668
output=$(.ci/run-functional-tests.sh 2>&1) || true
6769
echo "FUNCTIONAL_TEST_OUTPUT<<EOF" >> $GITHUB_OUTPUT
@@ -73,7 +75,20 @@ jobs:
7375
- name: Collect Test Data
7476
if: always()
7577
run: |
76-
.ci/ci-tools.sh collect-data "${{ matrix.toolchain }}" "${{ steps.test.outputs.TEST_OUTPUT }}" "${{ steps.functional_test.outputs.FUNCTIONAL_TEST_OUTPUT }}"
78+
if [ "${{ matrix.toolchain }}" = "llvm" ]; then
79+
# LLVM: Build-only validation, skip tests
80+
mkdir -p test-results
81+
echo "${{ matrix.toolchain }}" > test-results/toolchain
82+
echo "0" > test-results/crash_exit_code
83+
echo "0" > test-results/functional_exit_code
84+
touch test-results/apps_data
85+
touch test-results/functional_data
86+
touch test-results/functional_criteria_data
87+
echo "LLVM toolchain: Build validation only (tests skipped)"
88+
else
89+
# GNU: Full test suite
90+
.ci/ci-tools.sh collect-data "${{ matrix.toolchain }}" "${{ steps.test.outputs.TEST_OUTPUT }}" "${{ steps.functional_test.outputs.FUNCTIONAL_TEST_OUTPUT }}"
91+
fi
7792
7893
- name: Upload Test Results
7994
if: always()

0 commit comments

Comments
 (0)