Skip to content

Commit

Permalink
Merge pull request #3 from gerlero/cache
Browse files Browse the repository at this point in the history
Fix caching
  • Loading branch information
gerlero authored Jul 26, 2024
2 parents 3b549ce + 1ce5afe commit aa28f7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ jobs:
openfoam-version: ${{ matrix.openfoam-version }}
- name: Run icoFoam -help
run: icoFoam -help
- name: Regression test
run: |
source $WM_DIR/scripts/AllwmakeParseArguments
8 changes: 1 addition & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,8 @@ runs:
- name: Get OS version
uses: sersoft-gmbh/os-version-action@v3
id: os-version
- name: Install OpenFOAM on Linux
if: steps.prep.outputs.apt-package && inputs.cache && steps.prep.outputs.openfoam-flavor == 'com'
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: ${{ steps.prep.outputs.apt-package }}
version: ${{ steps.os-version.outputs.version }}
- name: Install OpenFOAM on Linux (without caching)
if: steps.prep.outputs.apt-package && (!inputs.cache || steps.prep.outputs.openfoam-flavor != 'com')
if: steps.prep.outputs.apt-package
run: |
sudo apt-get install -y ${{ steps.prep.outputs.apt-package }}
shell: bash
Expand Down

0 comments on commit aa28f7f

Please sign in to comment.