-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
58 lines (52 loc) · 2.02 KB
/
action.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 'install libmpdata++'
description: 'installs libmpdata++, loads UWLCM Singularity image for dependencies'
inputs:
build_type:
description: 'CMake build type: Release, Debug, ...'
required: true
default: "Release"
threads:
description: "number of threads used by make"
required: true
default: 1
path:
description: "path to the dir with libmpdataxx code"
required: true
install_prefix:
description: "CMake install prefix"
required: true
default: "/usr/local"
tag:
description: 'Singularity image tag'
required: true
default: 'ubuntu_20_04_cuda_11_4'
cxx:
description: 'C++ compiler'
required: true
default: 'g++'
runs:
using: "composite"
steps:
- name: load UWLCM Singularity image
uses: igfuw/[email protected]
with:
path: ${{ inputs.path }}/singularity_images
tag: ${{ inputs.tag }}
# - name: Configure CMake
# shell: bash
# run: singularity exec $SI cmake -B ${{inputs.path}}/build -DCMAKE_BUILD_TYPE=${{inputs.build_type}} -DCMAKE_INSTALL_PREFIX=${{inputs.install_prefix}} -DCMAKE_CXX_COMPILER=${{inputs.cxx}};
# - name: Build libmpdata++
# shell: bash
# run: VERBOSE=1 singularity exec $SI cmake --build ${{inputs.path}}/build --config ${{inputs.build_type}} -j${{inputs.threads}}
#
# - name: Install libmpdata++
# shell: bash
# run: VERBOSE=1 singularity exec $SI cmake --install ${{inputs.path}}/build --config ${{inputs.build_type}}
- name: configure and build libmpdata++
working-directory: ${{inputs.path}}
shell: bash
run: VERBOSE=1 singularity exec $SI bash -c "cmake -B ${{inputs.path}}/build -DCMAKE_BUILD_TYPE=${{inputs.build_type}} -DCMAKE_INSTALL_PREFIX=${{inputs.install_prefix}} -DCMAKE_CXX_COMPILER=${{inputs.cxx}};cmake --build ${{inputs.path}}/build --config ${{inputs.build_type}} -j${{inputs.threads}}"
- name: install libmpdata++
working-directory: ${{inputs.path}}
shell: bash
run: sudo cmake --install ${{inputs.path}}/build --config ${{inputs.build_type}}