Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang format to action #62

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 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 All @@ -37,20 +47,15 @@ jobs:
uses: actions/cache@v4
with:
path: 'fcitx5/**/*.tar.*'
key: ${{ runner.os }}-${{ hashFiles('fcitx5/src/modules/spell/CMakeLists.txt') }}
key: ${{ runner.os }}-${{ hashFiles('fcitx5/src/modules/spell/CMakeLists.txt')
}}
- name: Build and Install fcitx5
uses: fcitx/github-actions@cmake
with:
path: fcitx5
cmake-option: >-
-DENABLE_KEYBOARD=Off
-DENABLE_X11=Off
-DENABLE_WAYLAND=Off
-DENABLE_ENCHANT=Off
-DENABLE_DBUS=Off
-DENABLE_SERVER=Off
-DENABLE_EMOJI=Off
-DUSE_SYSTEMD=Off
-DENABLE_KEYBOARD=Off -DENABLE_X11=Off -DENABLE_WAYLAND=Off -DENABLE_ENCHANT=Off
-DENABLE_DBUS=Off -DENABLE_SERVER=Off -DENABLE_EMOJI=Off -DUSE_SYSTEMD=Off
- uses: actions/checkout@v4
with:
path: fcitx5-qt
Expand All @@ -64,9 +69,7 @@ jobs:
with:
path: fcitx5-qt
cmake-option: >-
-DENABLE_QT4=Off
-DENABLE_QT5=On
-DENABLE_QT6=On
-DENABLE_QT4=Off -DENABLE_QT5=On -DENABLE_QT6=On
- name: Test
run: |
ctest --test-dir fcitx5-qt/build
Expand Down
Loading