Skip to content

Bumping compiler version #36

Bumping compiler version

Bumping compiler version #36

Workflow file for this run

name: ci-linux
on:
push:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-linux.yml'
pull_request:
paths:
- '**'
- '!COPYING'
- '!COPYING-asm'
- '!INSTALL'
- '!**.md'
- '!.clang*'
- '!.gitignore'
- '!.gitattributes'
- '!.github/workflows/*'
- '.github/workflows/ci-linux.yml'
jobs:
ci-linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
generator: [make, ninja]
include:
- compiler: gcc
cc: gcc-11
cxx: g++-11
- compiler: clang
cc: clang-16
cxx: clang++-16
- generator: make
cmake_generator: "Unix Makefiles"
- generator: ninja
cmake_generator: "Ninja"
steps:
- name: Install dependencies
run: |
sudo apt-fast update
sudo apt-fast install -y libboost-all-dev ninja-build
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: 16
- name: Checkout code
uses: actions/checkout@master
- name: Configure
env:
OVERRIDE_CC: ${{ matrix.cc }}
OVERRIDE_CXX: ${{ matrix.cxx }}
run: |
export CC=$(which $OVERRIDE_CC)
export CXX=$(which $OVERRIDE_CXX)
cmake -S . -B build -G "${{ matrix.cmake_generator }}"
- name: Build
run: |
cmake --build build -j2