Bump 3rd_party/marian-dev from 780df27
to 11c6ae7
(#466)
#1246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Coding Style" | |
on: | |
push: | |
branches: [ main, ci-sandbox ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
clang-format: | |
name: "clang-format" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake | |
sudo apt-get install -y clang-format clang-tidy | |
- name: Run clang-format | |
run: | |
python3 run-clang-format.py --style file -r src wasm bindings/python | |
- name: Prepare build, compilation database etc. | |
run: | | |
mkdir -p build | |
cd build | |
cmake \ | |
-DUSE_WASM_COMPATIBLE_SOURCE=off -DCMAKE_EXPORT_COMPILE_COMMANDS=on \ | |
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ | |
.. | |
- name: Run clang-tidy | |
run: | | |
run-clang-tidy -p build "$PWD/src/.*" | |
run-clang-tidy -p build "$PWD/app/.*" |