From fbd6ae01e456ce419b830be85c8bf9076b149499 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Mon, 16 Dec 2024 10:57:27 -0600 Subject: [PATCH] Fix default compiler usage in CI --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e1ef83a..20449116 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: matrix: os: [ubuntu-22.04, ubuntu-latest] build_system: ["autotools", "cmake"] - python-version: ["3.10"] + python-version: ["3.10", "3.11"] hdf5-branch: ["hdf5_1_14", "develop"] compiler: ["gcc-11", "gcc-12", "gcc-13"] exclude: @@ -84,6 +84,7 @@ jobs: -DHDF5_ENABLE_Z_LIB_SUPPORT=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHDF5_ENABLE_THREADSAFE=OFF \ -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/hdf5install \ + -DCMAKE_C_COMPILER=${{matrix.compiler}} \ .. make make install @@ -120,7 +121,10 @@ jobs: run: | ./autogen.sh mkdir ${{github.workspace}}/vol-rest/install - CFLAGS="-D_POSIX_C_SOURCE=200809L" ./configure --prefix=${{github.workspace}}/vol-rest/install --with-hdf5=${{github.workspace}}/hdf5install + CFLAGS="-D_POSIX_C_SOURCE=200809L" ./configure \ + --prefix=${{github.workspace}}/vol-rest/install \ + --with-hdf5=${{github.workspace}}/hdf5install \ + CC=${{matrix.compiler}} shell: bash working-directory: ${{github.workspace}}/vol-rest