🏡 index : cold-air-networks/mirror-opencl-cts.git

name: Presubmit
on: [push, pull_request]

jobs:
  build:
    name: Build ${{ matrix.os }} ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    env:
      JOB_ARCHITECTURE: ${{ matrix.arch }}
      JOB_ENABLE_GL: ${{ matrix.gl }}
    strategy:
      matrix:
        mainmatrix: [true]
        os: [ubuntu-20.04, macos-11.0]
        include:
          - os: ubuntu-20.04
            mainmatrix: true
            gl: 1
          - os: ubuntu-20.04
            mainmatrix: false
            name: Arm
            arch: arm
          - os: ubuntu-20.04
            mainmatrix: false
            name: AArch64
            arch: aarch64
    steps:
      - uses: actions/checkout@v2
      - name: Build
        run: ./presubmit.sh
  formatcheck:
    name: Check code format
    runs-on: ubuntu-20.04
    steps:
      - name: Install packages
        run: sudo apt install -y clang-format
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Check code format
        run: ./check-format.sh