name: ci

on: [push, pull_request]

jobs:
  build_linux:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        compiler:
          - gcc-11
          - gcc-10
          - gcc-9
          - gcc-8
          - gcc-7
          - clang-13
          - clang-12
          - clang-11
          - clang-10
          - clang-9
          - clang-8
          - clang-7
    container:
      image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}:stable"
    name: "${{ matrix.compiler }}"
    steps:
      - uses: actions/checkout@main
      - name: Build
        run: script/ci_build.sh

  build_conan:
    runs-on: ubuntu-20.04
    name: "Conan ${{ matrix.compiler }}"
    steps:
      - uses: actions/checkout@main
      - name: Build
        run: |
          export CONAN_GCC_VERSIONS=10
          export CONAN_DOCKER_IMAGE=conanio/gcc${CONAN_GCC_VERSIONS}
          script/conan_build.sh

name: ci

on: [push, pull_request]

jobs:
  build_linux:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        compiler:
          - gcc-11
          - gcc-10
          - gcc-9
          - gcc-8
          - gcc-7
          - clang-13
          - clang-12
          - clang-11
          - clang-10
          - clang-9
          - clang-8
          - clang-7
    container:
      image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}:stable"
    name: "${{ matrix.compiler }}"
    steps:
      - uses: actions/checkout@main
      - name: Build
        run: script/ci_build.sh

  build_conan:
    runs-on: ubuntu-20.04
    name: "Conan ${{ matrix.compiler }}"
    steps:
      - uses: actions/checkout@main
      - name: Build
        run: |
          export CONAN_GCC_VERSIONS=11
          export CONAN_DOCKER_IMAGE=conanio/gcc${CONAN_GCC_VERSIONS}
          script/conan_build.sh

Update conan build to GCC 11
Update conan build to GCC 11
