Skip to content

Commit

Permalink
Remove HSDS caching in CI (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala authored Nov 10, 2023
1 parent ecbbb8c commit 4a4dfea
Showing 1 changed file with 4 additions and 42 deletions.
46 changes: 4 additions & 42 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
- name: Autotools Configure REST VOL
run: |
./autogen.sh
mkdir ${{github.workspace}}/rest_vol_install
CFLAGS="-D_POSIX_C_SOURCE=200809L" ./configure --prefix=${{github.workspace}}/rest_vol_install --with-hdf5=${{github.workspace}}/hdf5install
mkdir ${{github.workspace}}/vol-rest/install
CFLAGS="-D_POSIX_C_SOURCE=200809L" ./configure --prefix=${{github.workspace}}/vol-rest/install --with-hdf5=${{github.workspace}}/hdf5install
shell: bash
working-directory: ${{github.workspace}}/vol-rest

Expand All @@ -85,24 +85,11 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/vol-rest/

- uses: actions/cache/restore@v3
with:
key: hsds
path: ${{github.workspace}}/hsds
id: hsds-restore

- uses: actions/checkout@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
repository: HDFGroup/hsds
path: ${{github.workspace}}/hsds

- uses: actions/cache/save@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
key: hsds
path: ${{github.workspace}}/hsds

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -156,7 +143,7 @@ jobs:
- name: Test REST VOL
working-directory: ${{github.workspace}}/vol-rest/
run: |
HDF5_PLUGIN_PATH=${{github.workspace}}/rest_vol_install/lib HDF5_VOL_CONNECTOR=REST ./test/test_rest_vol
HDF5_PLUGIN_PATH=${{github.workspace}}/vol-rest/install/lib HDF5_VOL_CONNECTOR=REST ./test/test_rest_vol
build_and_test_with_cmake:
strategy:
Expand Down Expand Up @@ -219,24 +206,11 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/vol-rest/build

- uses: actions/cache/restore@v3
with:
key: hsds
path: ${{github.workspace}}/hsds
id: hsds-restore

- uses: actions/checkout@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
repository: HDFGroup/hsds
path: ${{github.workspace}}/hsds

- uses: actions/cache/save@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
key: hsds
path: ${{github.workspace}}/hsds

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -290,6 +264,7 @@ jobs:
- name: Set HDF5 Plugin path
run: |
echo "HDF5_PLUGIN_PATH=${{github.workspace}}/vol-rest/build/bin/" >> $GITHUB_ENV
echo "HDF5_VOL_CONNECTOR=REST" >> $GITHUB_ENV
- name: Test REST VOL
working-directory: ${{github.workspace}}/vol-rest/build/
Expand Down Expand Up @@ -379,25 +354,12 @@ jobs:
sudo apt update
sudo apt install valgrind
working-directory: ${{ github.workspace }}

- uses: actions/cache/restore@v3
with:
key: hsds
path: ${{github.workspace}}/hsds
id: hsds-restore

- uses: actions/checkout@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
repository: HDFGroup/hsds
path: ${{github.workspace}}/hsds

- uses: actions/cache/save@v3
if: ${{!steps.hsds-restore.outputs.cache-hit}}
with:
key: hsds
path: ${{github.workspace}}/hsds

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down

0 comments on commit 4a4dfea

Please sign in to comment.