-
-
Notifications
You must be signed in to change notification settings - Fork 86
47 lines (47 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build with OpenFOAM v2312
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
container: precice/precice:nightly
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install action dependencies
run: |
apt-get update -qq
apt-get install -qq sudo wget
- 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: Build OpenFOAM-preCICE adapter
run: /usr/bin/openfoam2312 ./Allwmake