name: CI
on:
  push:
    branches: [master]
jobs:
  build-clang:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest]
    env:
      CC: clang
      CXX: clang++
    steps:
    - uses: actions/checkout@v2
    - run: make && make test
      shell: bash
  build-gcc:
    runs-on: ubuntu-latest
    container: gcc:${{ matrix.tag }}
    strategy:
      matrix:
        tag: [4, 5, 6, 7, 8, 9, 10]
    env:
      CC: gcc
      CXX: g++
    steps:
    - uses: actions/checkout@v2
    - run: make && make test
      shell: bash

name: CI
on:
  push:
    branches: [master]
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest]
    env:
      CC: clang
      CXX: clang++
    steps:
    - uses: actions/checkout@v2
    - run: make && make test
      shell: bash
  build-clang:
    runs-on: ubuntu-latest
    container: ericwf/llvm:${{ matrix.tag }}
    strategy:
      matrix:
        tag: [4.x, 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x]
    env:
      CC: clang
      CXX: clang++
    steps:
    - uses: actions/checkout@v2
    - run: make && make test
      shell: bash
  build-gcc:
    runs-on: ubuntu-latest
    container: gcc:${{ matrix.tag }}
    strategy:
      matrix:
        tag: [4, 5, 6, 7, 8, 9, 10]
    env:
      CC: gcc
      CXX: g++
    steps:
    - uses: actions/checkout@v2
    - run: make && make test
      shell: bash

Configure a build matrix for Clang using containers.
Configure a build matrix for Clang using containers.

Change-Id: I8dbc53f3a45f1f1f215e8c949275b85fdef2c8e3
Reviewed-on: https://code-review.googlesource.com/c/re2/+/57800
Reviewed-by: Paul Wankadia <62d4e38bb1380f055ec4b899baa75e52af09c5f7@google.com>
