-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (42 loc) · 1.17 KB
/
main.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
name: build
on:
push:
pull_request:
schedule:
#Every 50 days at midnight
- cron: "0 0 1/600 * *"
jobs:
compilejobFedora:
name: APFEL_on_Fedora
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: |
yum -y install gcc gcc-c++ gcc-gfortran make wget which cmake cmake-data cmake-filesystem lhapdf lhapdf-devel swig python-devel
- name: Compile
run: |
cmake -S . -B BUILD -DCMAKE_INSTALL_PREFIX=$(pwd)/../INSTALL
cmake --build BUILD -j
cmake --install BUILD
ctest --test-dir BUILD -j 2
compilejobOSX:
runs-on: macos-latest
name: APFEL_on_OSX
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: |
brew install wget coreutils gcc swig
brew tap davidchall/hep
brew install lhapdf
- name: Compile
run: |
cmake -S . -B BUILD -DCMAKE_INSTALL_PREFIX=$(pwd)/../INSTALL -DCMAKE_Fortran_COMPILER=gfortran-13
cmake --build BUILD -j 2
cmake --install BUILD
ctest --test-dir BUILD -j 2