From 352c083f6527fa757567f0d3fa0b03953c03c3c3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 5 Nov 2023 18:10:27 +0100 Subject: [PATCH] Run the testsuite on multiple compiler versions --- .github/workflows/build-and-test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8470947..82496af 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,14 +9,28 @@ on: jobs: build-ubuntu-gcc: runs-on: ubuntu-latest + strategy: + matrix: + version: [12] steps: - uses: actions/checkout@v4 + - name: Setting up gcc version + run: | + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 - name: Build run: make test build-ubuntu-clang: runs-on: ubuntu-latest + strategy: + matrix: + version: [14, 15] steps: - uses: actions/checkout@v4 + - name: Setting up clang version + run: | + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.version }} 100 + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 - name: Build run: CC=clang CXX=clang++ make test build-musl: