Bump actions/cache from 3 to 4 #921
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with OpenFOAM v2306 | |
on: | |
push: | |
branches-ignore: | |
- 'OpenFOAM*' | |
paths-ignore: | |
- 'docs/**' | |
- 'tools/**' | |
- 'CHANGELOG.md' | |
- 'CONTRIBUTING.md' | |
- 'README.md' | |
pull_request: | |
branches-ignore: | |
- 'OpenFOAM*' | |
paths-ignore: | |
- 'docs/**' | |
- 'tools/**' | |
- 'CHANGELOG.md' | |
- 'CONTRIBUTING.md' | |
- 'README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup caches | |
uses: actions/cache@v4 | |
id: cache-id | |
with: | |
path: ${{ runner.temp }}/cache-directory | |
key: ${{ runner.os }}-cache-dependencies-v1.0 | |
- name: Install OpenFOAM (considering cache) | |
uses: airvzxf/[email protected] | |
with: | |
script: 'install-openfoam.sh' | |
is_cached: ${{ steps.cache-id.outputs.cache-hit }} | |
cache: ${{ runner.temp }}/cache-directory | |
snapshot: '/' | |
exclude: '/boot /data /dev /mnt /proc /run /sys' | |
- name: Install preCICE | |
uses: precice/setup-precice-action@main | |
with: | |
precice-version: develop | |
- name: Build OpenFOAM-preCICE adapter | |
run: /usr/bin/openfoam2306 ./Allwmake |