Skip to content

Commit ce57b93

Browse files
committed
allow sudo, use homebrew action
1 parent 24d6be6 commit ce57b93

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/testing.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Harden Runner
5959
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
6060
with:
61-
disable-sudo: true
61+
disable-sudo: false
6262
egress-policy: block
6363
allowed-endpoints: >
6464
azure.archive.ubuntu.com:80
@@ -73,15 +73,17 @@ jobs:
7373
with:
7474
persist-credentials: false
7575

76-
- name: Install NetCDF (Linux)
76+
- name: Install NetCDF (Ubuntu/apt)
7777
if: matrix.os == 'ubuntu-latest'
7878
run: |
7979
sudo apt-get update
8080
sudo apt-get install -y libnetcdf-dev
81-
- name: Install NetCDF (macOS)
82-
if: matrix.os == 'macos-latest'
83-
run: |
84-
brew install netcdf
81+
- name: Install NetCDF4 (macOS/homebrew)
82+
if: (matrix.os == 'macos-latest') && (!matrix.conda)
83+
uses: tecolicom/actions-use-homebrew-tools@b9c066b79607fa3d71e0be05d7003bb75fd9ff34 # v1.3.0
84+
with:
85+
tools: netcdf
86+
cache: "yes"
8587

8688
- name: Fetch NetCDF CMake script
8789
run: |

0 commit comments

Comments
 (0)