Skip to content

Commit 8b3d7e8

Browse files
committed
Fix PETSc cache permissions
1 parent 3b382d6 commit 8b3d7e8

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/full-mpich.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
version: ${{ fromJson(inputs.ubuntu_versions || '[22.04, 24.04]') }}
51-
build-type: ${{ fromJson(inputs.build_types || '["debug", "release"]') }}
50+
version: ${{ fromJson(inputs.ubuntu_versions || '[22.04, 24.04]') }}
51+
build-type: ${{ fromJson(inputs.build_types || '["debug", "release"]') }}
5252

5353
name: Ubuntu ${{ matrix.version }} with ${{ matrix.build-type }} \
5454
- ${{ github.workflow }}
@@ -86,6 +86,11 @@ jobs:
8686
echo "image=$ImageOS" >> $GITHUB_OUTPUT
8787
echo "home=$HOME" >> $GITHUB_OUTPUT
8888
89+
- name: Prepare PETSc cache directory permissions
90+
run: |
91+
sudo mkdir -p "${INSTALL_DIR}/ff-petsc"
92+
sudo chown -R "$USER:$USER" "${INSTALL_DIR}/ff-petsc"
93+
8994
- name: Cache PETSc installation
9095
id: cache-petsc
9196
uses: actions/cache@v5

.github/workflows/full-msmpi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
version: ${{ fromJson(inputs.windows_versions || '[2025]') }}
51-
build-type: ${{ fromJson(inputs.build-types || '["release"]') }}
50+
version: ${{ fromJson(inputs.windows_versions || '[2025]') }}
51+
build-type: ${{ fromJson(inputs.build-types || '["release"]') }}
5252

5353
name: Windows Server ${{ matrix.version }} ${{ matrix.build-type }} - ${{github.workflow}}
5454
runs-on: windows-${{ matrix.version }}

.github/workflows/full-openmpi.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
version: ${{ fromJson(inputs.versions || '[22.04, 24.04]') }}
48-
build-type: ${{ fromJson(inputs.build-types || '["debug", "release"]') }}
47+
version: ${{ fromJson(inputs.versions || '[22.04, 24.04]') }}
48+
build-type: ${{ fromJson(inputs.build-types || '["debug", "release"]') }}
4949

5050
name: Ubuntu ${{ matrix.version }} with ${{ matrix.build-type }} \
5151
- ${{ github.workflow }}
@@ -83,6 +83,11 @@ jobs:
8383
echo "image=$ImageOS" >> $GITHUB_OUTPUT
8484
echo "home=$HOME" >> $GITHUB_OUTPUT
8585
86+
- name: Prepare PETSc cache directory permissions
87+
run: |
88+
sudo mkdir -p "${INSTALL_DIR}/ff-petsc"
89+
sudo chown -R "$USER:$USER" "${INSTALL_DIR}/ff-petsc"
90+
8691
- name: Cache PETSc installation
8792
id: cache-petsc
8893
uses: actions/cache@v5

0 commit comments

Comments
 (0)