aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/presubmit.yml
blob: 0c1778ebe6f1643780de27bcb03ac5f75612fa84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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