-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 832 Bytes
/
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
inputs:
app-version:
type: string
required: true
workflow_dispatch:
inputs:
cache-build:
type: boolean
default: true
required: false
description: Cache build artifacts for later reuse
jobs:
ci:
strategy:
matrix:
build-os: [macos-14, macos-12]
openfoam-version: [2406, 2312]
fail-fast: false
uses: ./.github/workflows/build-test.yml
with:
build-os: ${{ matrix.build-os }}
openfoam-version: ${{ matrix.openfoam-version }}
app-version: ${{ inputs.app-version }}
cache-build: ${{ github.event_name == 'workflow_dispatch' && inputs.cache-build || github.event_name != 'workflow_dispatch' }}