Merge pull request #191 from gerlero/configure #681
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: 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' }} |