test workflow update with new version of checkout action #12
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: Style Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
# Style check with clang-format 18 | |
style-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install packages | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 | |
sudo apt install -y nasm clang-format-18 | |
- name: Checkout repo | |
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v4.2.0 | |
with: | |
repository: 'intel/intel-ipsec-mb' | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCLANG_FORMAT_BIN=clang-format-18 | |
- name: Run style check | |
run: cmake --build ${{github.workspace}}/build --target style |