Skip to content

Commit

Permalink
Enable cache/no-cache PDC CI tests (#171)
Browse files Browse the repository at this point in the history
CI with cache and no-cache versions of PDC
  • Loading branch information
jeanbez committed Jan 9, 2024
1 parent e0024e3 commit 63244f5
Show file tree
Hide file tree
Showing 4 changed files with 275 additions and 62 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dependencies-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sudo apt-get update
sudo apt-get install libopenmpi-dev libhdf5-dev

# libfabric
# git clone https://github.com/ofiwg/libfabric.git
wget https://github.com/ofiwg/libfabric/archive/refs/tags/v1.12.1.tar.gz
tar xf v1.12.1.tar.gz
cd libfabric-1.12.1
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ubuntu-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ubuntu (cache)

on:
pull_request:
branches: [ stable, develop ]

workflow_dispatch:

jobs:
PDC:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3

- name: Dependencies
run: .github/workflows/dependencies-linux.sh

- name: Build PDC
run: |
mkdir build && cd build
cmake ../ -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=ON -DBUILD_TESTING=ON -DPDC_ENABLE_MPI=ON -DCMAKE_C_COMPILER=mpicc
make -j2
- name: Test PDC
working-directory: build
run: ctest -L serial
28 changes: 28 additions & 0 deletions .github/workflows/ubuntu-no-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ubuntu (no-cache)

on:
pull_request:
branches: [ stable, develop ]

workflow_dispatch:

jobs:
PDC:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3

- name: Dependencies
run: .github/workflows/dependencies-linux.sh

- name: Build PDC
run: |
mkdir build && cd build
cmake ../ -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DPDC_ENABLE_MPI=ON -DCMAKE_C_COMPILER=mpicc
make -j2
- name: Test PDC
working-directory: build
run: ctest -L serial
Loading

0 comments on commit 63244f5

Please sign in to comment.