Skip to content

Commit

Permalink
Add clang-format check action
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed May 4, 2024
1 parent 3d988ce commit 68160bf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: Cache pacman packages
uses: actions/cache@v4
with:
path: '/var/cache/pacman/pkg'
key: ${{ runner.os }}-pacman
- name: Install dependencies
run: |
pacman -Syu --noconfirm git clang diffutils
git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- uses: fcitx/github-actions@clang-format

0 comments on commit 68160bf

Please sign in to comment.