WIP: refactor makefiles (additions to Stephan's and Joorgen's PRs) #1580
Workflow file for this run
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: C/C++ CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
debug_builds: | |
runs-on: ubuntu-latest | |
env: | |
FCFLAGS: -O0 -g | |
CXXFLAGS: -O0 -g | |
NVCCFLAGS: -O0 -g -G | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.sa/SubProcesses/P1_Sigma_sm_epem_mupmum , epochX/cudacpp/pp_tt012j.mad/SubProcesses/P0_gg_ttx , epochX/cudacpp/pp_tt012j.mad/SubProcesses/P2_uux_ttxgg ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make debug | |
run: make -C ${{ matrix.folder }} | |
- name: make check | |
run: make -C ${{ matrix.folder }} check | |
CPU: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum , epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg , epochX/cudacpp/pp_tt012j.mad/SubProcesses/P0_gg_ttx ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make info | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} info | |
- name: make | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} | |
- name: make check | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} check | |
CPU_MAC: | |
runs-on: macos-latest | |
env: | |
FC: gfortran-11 | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum, epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make info | |
run: make OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} info | |
- name: make | |
run: make OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} cppnative | |
- name: make check | |
run: make OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} check | |
GPU: | |
runs-on: self-hosted | |
env: | |
CUDA_HOME: /usr/local/cuda/ | |
FC: gfortran | |
REQUIRE_CUDA: 1 | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum , epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg , epochX/cudacpp/pp_tt012j.mad/SubProcesses/P0_gg_ttx , epochX/cudacpp/pp_tt012j.mad/SubProcesses/P2_uux_ttxgg ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: path | |
run: echo "PATH=$PATH" | |
- name: make info | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} info | |
- name: make cuda | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} cuda | |
- name: make gcheck | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} gcheck |