Skip to content

Commit

Permalink
Enable caching when running in a container
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Aug 14, 2024
1 parent a698338 commit 4fcd17d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ jobs:
openfoam -help
openfoam${{ matrix.openfoam-version }} -help
- name: Regression test
run: . $WM_DIR/scripts/AllwmakeParseArguments
run: . $WM_DIR/scripts/AllwmakeParseArguments
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ runs:
fi
shell: bash
- name: Install OpenFOAM on Linux (with caching)
if: steps.prep.outputs.apt-package && inputs.cache && !job.container
uses: eth-pkg/[email protected].5
if: steps.prep.outputs.apt-package && inputs.cache
uses: eth-pkg/[email protected].6
with:
packages: ${{ steps.prep.outputs.apt-package }}
- name: Install OpenFOAM on Linux (without caching)
if: steps.prep.outputs.apt-package && (!inputs.cache || job.container)
if: steps.prep.outputs.apt-package && !inputs.cache
run: |
export DEBIAN_FRONTEND=noninteractive
if [ $(id -u) -eq 0 ]; then
Expand Down

0 comments on commit 4fcd17d

Please sign in to comment.