diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8df42bfa..bc99bc4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,13 @@ jobs: matrix: os: [ubuntu-22.04, ubuntu-latest] python-version: ["3.10"] - hdf5-branch: ["hdf5_1_14"] + hdf5-branch: ["hdf5_1_14", "develop"] + include: + - os: ubuntu-22.04 + compiler: [gcc-11, gcc-12] + + - os: ubuntu-latest + compiler: [gcc-12, gcc-13] runs-on: ${{matrix.os}} steps: @@ -64,7 +70,8 @@ jobs: ./autogen.sh ./configure --prefix=${{github.workspace}}/hdf5install \ --enable-hl --disable-threadsafe \ - --enable-build-mode=production --enable-shared + --enable-build-mode=production --enable-shared \ + CC=${{matrix.compiler}} make make install shell: bash @@ -126,7 +133,6 @@ jobs: pip install requests==2.31.0 - name: Start HSDS - if: ${{ matrix.endpoint != 'http://127.0.0.1:5101'}} run: | cd ${{github.workspace}}/hsds mkdir ${{github.workspace}}/hsdsdata && @@ -140,7 +146,6 @@ jobs: working-directory: ${{github.workspace}}/hsds - name: Test HSDS - if: ${{matrix.endpoint != 'http://127.0.0.1:5101'}} run: | python tests/integ/setup_test.py working-directory: ${{github.workspace}}/hsds @@ -163,6 +168,12 @@ jobs: os: [ubuntu-22.04, ubuntu-latest] python-version: ["3.10"] hdf5-branch: ["hdf5_1_14", "develop"] + include: + - os: ubuntu-22.04 + compiler: [gcc-11, gcc-12] + + - os: ubuntu-latest + compiler: [gcc-12, gcc-13] runs-on: ${{matrix.os}} steps: @@ -206,6 +217,7 @@ jobs: cd ./build CFLAGS="-D_POSIX_C_SOURCE=200809L" cmake -G "Unix Makefiles" -DHDF5_ROOT=${{github.workspace}}/hdf5install \ -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/vol-rest/install \ + -DCMAKE_C_COMPILER=${{matrix.compiler}} \ .. shell: bash working-directory: ${{github.workspace}}/vol-rest @@ -258,7 +270,6 @@ jobs: pip install requests==2.31.0 - name: Start HSDS - if: ${{ matrix.endpoint != 'http://127.0.0.1:5101'}} run: | cd ${{github.workspace}}/hsds mkdir ${{github.workspace}}/hsdsdata && @@ -272,7 +283,6 @@ jobs: working-directory: ${{github.workspace}}/hsds - name: Test HSDS - if: ${{matrix.endpoint != 'http://127.0.0.1:5101'}} run: | python tests/integ/setup_test.py working-directory: ${{github.workspace}}/hsds