Skip to content

Commit

Permalink
Temporarily build NetCDF dependency for macOS (#373 )
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed authored Oct 15, 2024
1 parent da918c9 commit 010cdc5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-and-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ jobs:
- name: Install system-provided dependencies
run: |
if [ "${{ runner.os }}" == "macOS" ]; then
brew install boost doxygen netcdf
brew install boost doxygen
elif [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get install libboost-all-dev doxygen
fi
# Step: Restore cached user-provided dependencies
- if: runner.os != 'macOS'
name: Restore cached user-provided dependencies
- name: Restore cached user-provided dependencies
uses: actions/cache/restore@v3
id: restore-cached-external-dependencies
with:
Expand All @@ -67,7 +66,7 @@ jobs:

# Step: Build and install user-provided dependencies, executes only if no cache restored
- name: Build and install user-provided dependencies
if: runner.os != 'macOS' && steps.restore-cached-external-dependencies.outputs.cache-hit != 'true'
if: steps.restore-cached-external-dependencies.outputs.cache-hit != 'true'
# NetCDF Dependencies m4, curl, and openssl are provided by the build machine
run: >
pwsh ${{ github.workspace }}/scripts/install_netcdf_static.ps1
Expand All @@ -79,7 +78,7 @@ jobs:
# Step: Cache user-provided dependencies, executes only if no cache restored
- name: Cache user-provided dependencies
uses: actions/cache/save@v3
if: runner.os != 'macOS' && steps.restore-cached-external-dependencies.outputs.cache-hit != 'true'
if: steps.restore-cached-external-dependencies.outputs.cache-hit != 'true'
with:
key: ${{ inputs.platform }}-${{ inputs.build_type }}-cache-key
path: ${{ steps.paths.outputs.ext_deps_dir }}/netcdf-c/install/netcdf-c
Expand Down

0 comments on commit 010cdc5

Please sign in to comment.