-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.56 KB
/
test.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
name: Test
on: [push]
jobs:
test_main:
# strategy:
# matrix:
runs-on: ubuntu-latest
steps:
- name: calculate cache key for the compilation
id: get-key
run: |
git clone --bare https://github.com/plumed/plumed2.git
stable=$(cd plumed2.git ; git branch --list 'v2.*' --sort='version:refname'| sed "s/^ *//" | grep '^v2\.[0-9]*$' | tail -n 1)
echo "key=$(cd plumed2.git ; git rev-parse "$stable")" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ~/.ccache
key: ccache-${{ runner.os }}-stable-${{ steps.get-key.outputs.key }}
restore-keys: ccache-${{ runner.os }}-stable
- name: Install dependencies
run: |
sudo apt update
sudo apt install mpi-default-bin mpi-default-dev
sudo apt install libfftw3-dev gsl-bin libgsl0-dev libboost-serialization-dev
sudo apt install ccache
- name : install plumed
uses: Iximiel/install-plumed@main
with:
modules: 'reset'
dependency_path: '${{ github.workspace }}/_data'
CC: 'ccache mpicc'
CXX: 'ccache mpic++'
id: plumed
- name: run plumed
run: |
echo "plumed path:${{ steps.plumed.outputs.plumed_prefx }}"
ls ${{ steps.plumed.outputs.plumed_prefx }}/bin
head ${{ steps.plumed.outputs.dependency_file }}
plumed --version
test_stable:
# strategy:
# matrix:
runs-on: ubuntu-latest
steps:
- uses: Iximiel/install-plumed@v1
- name: run plumed
run: |
plumed --version