Skip to content

Commit

Permalink
Add clang format to action
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed May 20, 2024
1 parent 602d5d6 commit 69a27fd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
name: CI

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 diffutils
git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- uses: fcitx/github-actions@clang-format
check:
name: Build and test
needs: clang-format
runs-on: ubuntu-latest
container: archlinux:latest
strategy:
Expand Down

0 comments on commit 69a27fd

Please sign in to comment.