superbuild: Add jobs switch for sub-builds (#2568) #917
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
# Copyright 2020-2023, Intel Corporation | |
# SPDX-License-Identifier: BSD-3-Clause | |
name: Check code formatting | |
on: [push, pull_request] | |
jobs: | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
echo "APT::Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-retries | |
sudo apt-get update | |
sudo apt-get install -y clang-format-12 clang-12 | |
sudo ln -sf /usr/bin/clang-12 /usr/bin/clang | |
sudo ln -sf /usr/bin/clang-format-12 /usr/bin/clang-format | |
- name: Check format | |
run: | | |
./check_format.sh |