Skip to content

Commit 0e0c103

Browse files
authored
Run limited selection of tests with slimcc (#237)
1 parent 33ced6f commit 0e0c103

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,27 @@ jobs:
6969
run: CC=${{matrix.CC}} CFLAGS="-fsanitize=undefined ${{matrix.USE_STATIC_HEAP}}" uv run python compiler_tests.py
7070
- name: Run compiler tests with Valgrind
7171
run: CC=${{matrix.CC}} CFLAGS="${{matrix.USE_STATIC_HEAP}}" USE_VALGRIND=1 uv run python compiler_tests.py
72+
run_compiler_unit_tests_other_cc:
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Update local package lists
77+
run: sudo apt update
78+
- name: Install build tools
79+
run: sudo apt install --yes make
80+
- name: Install uv
81+
uses: astral-sh/setup-uv@v5
82+
- name: Install Python
83+
run: uv python install 3.10
84+
- name: Pin Python
85+
run: uv python pin 3.010
86+
# slimcc
87+
- name: Clone slimcc
88+
run: git clone --depth 1 https://github.com/fuhsnn/slimcc
89+
- name: Build slimcc
90+
run: make -C slimcc test-stage2 -j4
91+
- name: Run compiler tests with slimcc
92+
run: CC=slimcc/slimcc uv run python compiler_tests.py
7293
run_unit_tests:
7394
needs: [run_interpreter_unit_tests, run_compiler_unit_tests]
7495
# Fake, unnecessary

0 commit comments

Comments
 (0)