Skip to content

Add clang-format check action #3

Add clang-format check action

Add clang-format check action #3

name: Clang-format
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
clang-format:
name: Check clang-format
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Install dependencies
run: |
pacman -Syu --noconfirm git clang
git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- uses: fcitx/github-actions@clang-format