Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix caching #3

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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