forked from plumed/plumed2
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.16 KB
/
condaWF.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
name: CI
on:
workflow_call:
env:
# on CI, better dump stack trace in case there is an error
PLUMED_STACK_TRACE: yes
# use two threads for openMP tests
PLUMED_NUM_THREADS: 2
# these are used to build required packages
CC: gcc
CXX: g++
jobs:
conda:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04 , macos-12 , macos-14 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install conda
run: |
curl -LO https://raw.githubusercontent.com/GiovanniBussi/conda-ci/master/conda-ci
source ./conda-ci install
source ./conda-ci install-conda-build
- name: Build PLUMED
run: |
source activate base
export VERSION=none
if [[ $GITHUB_REF == "refs/tags/"* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
VERSION=${VERSION//-/_}
VERSION=${VERSION#v}
fi
make -C conda
- name: Deploy
env:
CONDA_UPLOAD_TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}
if: ${{ startsWith( github.ref , 'refs/tags/' ) }}
run: |
source activate base
export CONDA_LABEL=tag
make -C conda upload