forked from plumed/plumed2
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.03 KB
/
nightly.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
name: Nightly builds
on:
schedule:
- cron: "30 17 * * 0"
jobs:
conda:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest , macos-12 , macos-14]
branch: [v2.8, v2.9, master]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- 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
run: |
source activate base
export VERSION=
BRANCH=${{ matrix.branch }}
if test "$BRANCH" = master ; then VERSION=2.99.$(date +%y%m%d) ; fi
if [[ "$BRANCH" =~ ^v2.[0-9]+$ ]] ; then VERSION=${BRANCH#v}.$(date +%y%m%d) ; fi
make -C conda
- name: Deploy
env:
CONDA_UPLOAD_TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}
run: |
source activate base
export CONDA_LABEL=nightly
make -C conda upload