-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (39 loc) · 1.12 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 6 * * 5'
workflow_dispatch:
inputs:
use-cached:
type: boolean
default: false
required: false
description: Reuse cached build artifacts if available
build-os:
type: string
default: ''
required: false
description: Build using this macOS image
cache-build:
type: boolean
default: true
required: false
description: Cache build artifacts for later reuse
jobs:
ci:
strategy:
matrix:
openfoam-version: [2306, 2212, 2206, 2112]
fail-fast: false
uses: ./.github/workflows/build-test.yml
with:
openfoam-version: ${{ matrix.openfoam-version }}
build-os: ${{ inputs.build-os }}
use-cached: ${{ github.event_name == 'workflow_dispatch' && inputs.use-cached || github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' }}
cache-build: ${{ github.event_name != 'workflow_dispatch' && inputs.cache-build || github.event_name != 'workflow_dispatch' }}