-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
63 lines (63 loc) · 1.83 KB
/
action.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Install Plumed'
description: 'Installs plumed from https://github.com/plumed/plumed2'
inputs:
repository:
description: 'The url of the Plumed repository'
required: false
default: 'https://github.com/plumed/plumed2.git'
version:
description: 'The version of plumed to install (default to master)'
required: false
default: ''
suffix:
description: 'Suffix for the program name'
required: false
default: ''
prefix:
description: 'The installation prefix'
required: false
default: '~/opt'
extra_options:
description: 'Extra options for installing plumed'
required: false
default: '--enable-boost_serialization --enable-fftw --enable-libtorch --disable-basic-warnings'
modules:
description: 'List of modules to install, or "all"'
required: false
default: 'all'
CC:
description: 'C compiler'
required: false
default: 'gcc'
CXX:
description: 'C++ compiler'
required: false
default: 'g++'
dependency_path:
description: 'Path where to store "extradeps$version.json"'
required: false
default: ''
outputs:
plumed_prefix:
description: "Plumed executable path"
value: ${{ steps.installation.outputs.plumed_path }}
dependency_file:
description: "Plumed dependency json file"
value: ${{ steps.installation.outputs.dependencies }}
runs:
using: "composite"
steps:
- name: Install plumed
id: installation
run: $GITHUB_ACTION_PATH/install-plumed.sh
shell: bash
env:
REPO: ${{ inputs.repository }}
VERSION: ${{ inputs.version }}
SUFFIX: ${{ inputs.suffix }}
PREFIX: ${{ inputs.prefix }}
EXTRA_OPTIONS: ${{ inputs.extra_options }}
MODULES: ${{ inputs.modules }}
CC: ${{ inputs.CC }}
CXX: ${{ inputs.CXX }}
DEPPATH: ${{ inputs.dependency_path }}