Skip to content

Commit

Permalink
Add different GCC versions to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Dec 16, 2024
1 parent 732a629 commit 0e13935
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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
Expand Down

0 comments on commit 0e13935

Please sign in to comment.