Test HELICS Install Action #376
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: Test HELICS Install Action | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/test-helics-install.yml" | |
- "install/**" | |
- "!install/**.md" | |
schedule: | |
- cron: "15 10 * * 1,3,5" # Running early in the morning (UTC) | |
workflow_dispatch: | |
inputs: | |
install_binary: | |
type: boolean | |
description: "Install HELICS from binary release" | |
required: false | |
default: true | |
build_from_source: | |
type: boolean | |
description: "Install HELICS by building from source (set to `true` to enable`; takes 10-15min)" | |
required: false | |
default: false | |
jobs: | |
install-binary-test: | |
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.inputs.install_binary == 'true' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: gmlc-tdc/helics-action/install@main | |
- name: Test running helics_broker | |
shell: bash | |
run: | | |
helics_broker --version | |
install-source-test: | |
if: github.event_name == 'schedule' || github.event.inputs.build_from_source == 'true' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: gmlc-tdc/helics-action/install@main | |
with: | |
build_from_source: "true" | |
- name: Test running helics_broker | |
shell: bash | |
run: | | |
helics_broker --version |