build #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
env: | |
CFLAGS: -fsanitize=address | |
CXXFLAGS: -fsanitize=address | |
FFLAGS: -fsanitize=address | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
run: | | |
yum -y install gcc gcc-c++ gcc-gfortran libasan 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 --output-on-failure --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 --output-on-failure --test-dir BUILD -j 2 |