-
Notifications
You must be signed in to change notification settings - Fork 38
26 lines (24 loc) · 899 Bytes
/
format-check.yaml
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
name: Format Check
on: [pull_request, workflow_dispatch]
jobs:
clang-format-check:
runs-on: self-hosted
container:
image: localhost:5000/byteir-ci
volumes:
- /data00/llvm_libraries:/data00/llvm_libraries
- /data00/mhlo_libraries:/data00/mhlo_libraries
- /data00/external_libraries:/data00/external_libraries
options: --runtime=nvidia --gpus all
steps:
- name: Clear workspace
run: rm -rf $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v3
- name: install format check
run: python3 -m pip install /data00/mhlo_libraries/formatCheck-1.0-py3-none-any.whl
- name: Run clang-format check
run: ./scripts/clang_format_check.sh
shell: bash
- name: Run other format check
run: python3 ./scripts/format_check.py --dir $GITHUB_WORKSPACE