name: CI
on:
  push:
    branches: [main]
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      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
    strategy:
      fail-fast: false
      matrix:
        tag: [9, 10, 11, 12]
    env:
      CC: clang-${{ matrix.tag }}
      CXX: clang++-${{ matrix.tag }}
    steps:
      - uses: actions/checkout@v2
      - name: Install Clang ${{ matrix.tag }}
        run: |
          wget https://apt.llvm.org/llvm.sh
          chmod +x ./llvm.sh
          sudo ./llvm.sh ${{ matrix.tag }}
        shell: bash
      - run: make && make test
        shell: bash
  build-gcc:
    runs-on: ubuntu-latest
    container: gcc:${{ matrix.tag }}
    strategy:
      fail-fast: false
      matrix:
        tag: [4, 5, 6, 7, 8, 9, 10, 11]
    env:
      CC: gcc
      CXX: g++
    steps:
      - uses: actions/checkout@v2
      - run: make && make test
        shell: bash

name: CI
on:
  push:
    branches: [main]
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      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
    strategy:
      fail-fast: false
      matrix:
        tag: [9, 10, 11, 12, 13]
    env:
      CC: clang-${{ matrix.tag }}
      CXX: clang++-${{ matrix.tag }}
    steps:
      - uses: actions/checkout@v2
      - name: Install Clang ${{ matrix.tag }}
        run: |
          wget https://apt.llvm.org/llvm.sh
          chmod +x ./llvm.sh
          sudo ./llvm.sh ${{ matrix.tag }}
        shell: bash
      - run: make && make test
        shell: bash
  build-gcc:
    runs-on: ubuntu-latest
    container: gcc:${{ matrix.tag }}
    strategy:
      fail-fast: false
      matrix:
        tag: [4, 5, 6, 7, 8, 9, 10, 11]
    env:
      CC: gcc
      CXX: g++
    steps:
      - uses: actions/checkout@v2
      - run: make && make test
        shell: bash

Add Clang 13 to the build matrix.
Add Clang 13 to the build matrix.

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