• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Presubmit
2on: [push, pull_request]
3
4jobs:
5  build:
6    name: Build ${{ matrix.os }} ${{ matrix.name }}
7    runs-on: ${{ matrix.os }}
8    env:
9      JOB_ARCHITECTURE: ${{ matrix.arch }}
10      JOB_ENABLE_GL: ${{ matrix.gl }}
11    strategy:
12      matrix:
13        mainmatrix: [true]
14        os: [ubuntu-20.04, macos-11.0]
15        include:
16          - os: ubuntu-20.04
17            mainmatrix: true
18            gl: 1
19          - os: ubuntu-20.04
20            mainmatrix: false
21            name: Arm
22            arch: arm
23          - os: ubuntu-20.04
24            mainmatrix: false
25            name: AArch64
26            arch: aarch64
27    steps:
28      - uses: actions/checkout@v2
29      - name: Build
30        run: ./presubmit.sh
31  formatcheck:
32    name: Check code format
33    runs-on: ubuntu-20.04
34    steps:
35      - name: Install packages
36        run: sudo apt install -y clang-format
37      - uses: actions/checkout@v2
38        with:
39          fetch-depth: 0
40      - name: Check code format
41        run: ./check-format.sh
42