this repo has no description

Run multiple compilers in CI

authored by bernsteinbear.com and committed by

Max Bernstein c49f55fa 53f162ee

+5 -2
+5 -2
.github/workflows/ci.yml
··· 33 33 strategy: 34 34 matrix: 35 35 PYTHON: [python3.8, python3.9, python3.10, python3.11, python3.12, python3.13] 36 + CC: [gcc, clang, tcc] 36 37 runs-on: ubuntu-latest 37 38 steps: 38 39 - uses: actions/checkout@v4 ··· 42 43 run: sudo apt update 43 44 - name: Install Python 44 45 run: sudo apt install --yes ${{matrix.PYTHON}} 46 + - name: Install compiler 47 + run: sudo apt install --yes ${{matrix.CC}} 45 48 - name: Run interpreter tests 46 49 run: ${{matrix.PYTHON}} scrapscript.py test 47 50 - name: Run compiler tests 48 - run: ${{matrix.PYTHON}} compiler_tests.py 51 + run: CC=${{matrix.CC}} ${{matrix.PYTHON}} compiler_tests.py 49 52 - name: Run compiler tests with static heap 50 - run: CFLAGS="-DSTATIC_HEAP" ${{matrix.PYTHON}} compiler_tests.py 53 + run: CC=${{matrix.CC}} CFLAGS="-DSTATIC_HEAP" ${{matrix.PYTHON}} compiler_tests.py 51 54 build_docker_image: 52 55 runs-on: ubuntu-latest 53 56 permissions: