Skip to content

use submodule xxHash #17

use submodule xxHash

use submodule xxHash #17

Workflow file for this run

name: "Linux"
on:
push:
branches:
# Push events to branches matching refs/heads/main
- 'main'
pull_request:
concurrency:
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
TZ: Europe/Berlin
jobs:
build:
name: ${{ matrix.os }} / ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
osname: ["Ubuntu 22.04"]
compiler: ["gcc13 (c++20)", "gcc12 (c++20)", "gcc11 (c++20)", "gcc13 (c++20, Debug)"]
include:
- osname: "Ubuntu 22.04"
os: ubuntu-22.04
cmake_flags: ""
threads: 2
- compiler: "gcc13 (c++20)"
cxx: "g++-13"
cc: "gcc-13"
build_type: Release
brew_pkgs: gcc@13
- compiler: "gcc12 (c++20)"
cxx: "g++-12"
cc: "gcc-12"
build_type: Release
brew_pkgs: gcc@12
- compiler: "gcc11 (c++20)"
cxx: "g++-11"
cc: "gcc-11"
build_type: Release
brew_pkgs: gcc@11
- compiler: "gcc13 (c++20, Debug)"
cxx: "g++-13"
cc: "gcc-13"
build_type: Debug
brew_pkgs: gcc@13
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: sahara
fetch-depth: 1
submodules: recursive
- name: Install Tools on Ubuntu
run: |
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ${HOME}/.activate_brew
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get update -y
sudo apt-get install -y build-essential libfmt-dev
brew install --force-bottle zlib boost cmake fmt pkg-config ${{ matrix.brew_pkgs }}
${{ matrix.cxx }} --version
- name: Tool versions
run: |
source ${HOME}/.activate_brew
cmake --version
${{ matrix.cxx }} --version
- name: Configure tests
env:
CXX: ${{ matrix.cxx }}
CC: ${{ matrix.cc }}
run: |
source ${HOME}/.activate_brew
mkdir build && cd $_
cmake ../sahara -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_flags }}
- name: Build tests
run: |
source ${HOME}/.activate_brew
cd build
make -k -j2
- name: Run tests
run: |
source ${HOME}/.activate_brew
cd build
ctest . -j ${{ matrix.threads }} --output-on-failure