-
Notifications
You must be signed in to change notification settings - Fork 199
41 lines (40 loc) · 1.01 KB
/
presubmit.yml
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-latest]
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 clang-format-9
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check code format
run: ./check-format.sh