Add range display to fit result #124
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++ Standards Checks | |
on: | |
push: | |
pull_request: | |
release: | |
# tags: | |
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
builds-matrix: | |
name: "${{matrix.os-version }} ${{ matrix.compiler }} ROOT ${{ matrix.root-version.name }} ${{ matrix.root-version.std }} CMake ${{ matrix.cmake-version }}" | |
runs-on: ${{ matrix.os-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os-version: [ ubuntu-latest ] | |
build_type: [ Release ] | |
compiler: [ gcc-latest, clang-latest ] | |
cmake-version: [ latest ] | |
root-version: | |
- name: 6.24.08 | |
std: 11 | |
- name: 6.26.06 | |
std: 14 | |
- name: 6.28.04 | |
std: 17 | |
- name: 6.28.04 | |
std: 20 | |
steps: | |
- name: Print env | |
run: | | |
echo github.event.action: ${{ github.event.action }} | |
echo github.event_name: ${{ github.event_name }} | |
- name: Setup gcc compiler | |
id: setup_cc | |
uses: rlalik/[email protected] | |
with: | |
compiler: ${{ matrix.compiler }} | |
- name: Install common dependencies | |
run: | | |
sudo apt update | |
sudo apt install cmake wget libgtest-dev lcov -y | |
sudo apt install python3-numpy libtbb-dev libxxhash0 -y | |
cmake --version | |
wget http://gccb.if.uj.edu.pl/code/root-cpp${{ matrix.root-version.std }}_${{ matrix.root-version.name }}_amd64.deb | |
sudo dpkg -i root-cpp${{ matrix.root-version.std }}_${{ matrix.root-version.name }}_amd64.deb | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Setup CMake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: ${{ matrix.cmake-version }} | |
- name: Configure | |
env: | |
CC: ${{ steps.setup_cc.outputs.cc }} | |
CXX: ${{ steps.setup_cc.outputs.cxx }} | |
shell: bash | |
run: | | |
. /etc/profile | |
root-config --version | |
root-config --cflags | |
root-config --features | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_CXX_STANDARD=${{ matrix.root-version.std }} \ | |
-DHelloFitty_DEVELOPER_MODE=ON \ | |
-DBUILD_TESTING=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_INSTALL_PREFIX:PATH=instdir | |
- name: Build | |
shell: bash | |
run: | | |
cd build | |
make | |
- name: Test | |
shell: bash | |
run: | | |
cd build | |
make test |