Skip to content

Commit 99f947d

Browse files
[CI] Speeding Up Compatibility Builds
The compatibility CI builds are taking longer than expected, especially for the GCC builds. They appear to be having issues with CCache. Trying to clean up the tests to speed them up.
1 parent cd79e68 commit 99f947d

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -611,19 +611,18 @@ jobs:
611611
fail-fast: false
612612
matrix:
613613
include:
614-
- { name: 'GCC 11 (Ubuntu Noble - 24.04)', eval: 'CC=gcc-11 && CXX=g++-11', key: 'gcc-11', }
615614
- { name: 'GCC 12 (Ubuntu Noble - 24.04)', eval: 'CC=gcc-12 && CXX=g++-12', key: 'gcc-12', }
616615
- { name: 'GCC 14 (Ubuntu Noble - 24.04)', eval: 'CC=gcc-14 && CXX=g++-14', key: 'gcc-14', }
617616
- { name: 'Clang 16 (Ubuntu Noble - 24.04)', eval: 'CC=clang-16 && CXX=clang++-16', key: 'clang-16', }
618617
- { name: 'Clang 17 (Ubuntu Noble - 24.04)', eval: 'CC=clang-17 && CXX=clang++-17', key: 'clang-17', }
619618
- { name: 'Clang 18 (Ubuntu Noble - 24.04)', eval: 'CC=clang-18 && CXX=clang++-18', key: 'clang-18', }
620619
# Note: We do not include GCC-13 since it is the default and is already tested.
620+
# We also do not include GCC-11 since it is tested in the JammyCompatibility test.
621621
name: 'B: ${{ matrix.name }}'
622+
env:
623+
MATRIX_EVAL: ${{ matrix.eval }}
622624
steps:
623625

624-
- uses: actions/setup-python@v5
625-
with:
626-
python-version: 3.12.3
627626
- uses: actions/checkout@v4
628627
with:
629628
submodules: 'true'
@@ -639,25 +638,21 @@ jobs:
639638
with:
640639
key: ${{ github.job }}-${{ matrix.key }}
641640

642-
- name: Test
641+
- name: Build
643642
env:
644-
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on -DVTR_IPO_BUILD=off"
645-
MATRIX_EVAL: ${{ matrix.eval }}
643+
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DVTR_IPO_BUILD=off"
646644
BUILD_TYPE: debug # Note: We use the debug build here to make the build time faster since we do not care about run time.
647-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
648645
run: |
649646
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
650-
./.github/scripts/build.sh
647+
make -j${{ steps.cpu-cores.outputs.count}}
651648
652649
JammyCompatibility:
653650
name: 'Ubuntu Jammy - 22.04 Compatibility Test'
654651
runs-on: ubuntu-22.04
655652
needs: [BuildVTR]
653+
env:
654+
MATRIX_EVAL: "CC=gcc-11 && CXX=g++-11"
656655
steps:
657-
- uses: actions/setup-python@v5
658-
with:
659-
python-version: 3.10.10
660-
661656
- uses: actions/checkout@v4
662657
with:
663658
submodules: 'true'
@@ -673,13 +668,11 @@ jobs:
673668
with:
674669
key: ${{ github.job }}
675670

676-
- name: Test
671+
- name: Build
677672
env:
678673
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_IPO_BUILD=off"
679-
MATRIX_EVAL: 'CC=gcc-11 && CXX=g++-11'
680674
BUILD_TYPE: debug # Note: We use the debug build here to make the build time faster since we do not care about run time.
681-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
682675
run: |
683676
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
684-
./.github/scripts/build.sh
677+
make -j${{ steps.cpu-cores.outputs.count}}
685678

0 commit comments

Comments
 (0)