Skip to content

Add access support for RISC-V (#2393) #1

Add access support for RISC-V (#2393)

Add access support for RISC-V (#2393) #1

Workflow file for this run

name: Run clang-tidy
on:
push:
paths:
- '**.c'
- '**.h'
pull_request:
jobs:
analyze:
runs-on: ubuntu-latest
name: clang-tidy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install clang-tidy
run: |
sudo apt install clang-tidy
- name: Build
run: |
mkdir build && cd build
CC=clang cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_SHARED_LIBS=1 ..
CC=clang sudo cmake --build . --config Release
cd ..
- name: Install clang-tidy-15
run: |
sudo apt install clang-tidy-15
- name: Check for warnings
env:
base_sha: ${{ github.event.pull_request.base.sha }}
head_sha: ${{ github.event.pull_request.head.sha }}
run: |
./run-clang-tidy.sh build