Skip to content

fix: fix compile. #1423

fix: fix compile.

fix: fix compile. #1423

Workflow file for this run

name: Run Code Linter
on:
workflow_dispatch:
push:
paths:
- 'bridge/**'
jobs:
cppcheck:
runs-on: macos-12
name: Cppcheck
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Run cppcheck
run: |
brew install cppcheck
cd bridge/polyfill
npm i
npm run build
cd ../
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
cppcheck --project=compile_commands.json -ithird_party --enable=all --suppress=missingIncludeSystem --quiet
continue-on-error: true
check_merge_conflict:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
# Checkout the source code so we have some files to look at.
- uses: actions/checkout@v3
with:
submodules: recursive
# Run the actual merge conflict finder
- name: Merge Conflict finder
uses: olivernybroe/[email protected]
reformat-bridge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: DoozyX/[email protected]
with:
source: './bridge'
exclude: './bridge/third_party/*'
extensions: 'h,cc,c'
clangFormatVersion: 12
inplace: True
- uses: EndBug/add-and-commit@v4
with:
author_name: openwebf-bot
author_email: [email protected]
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}