mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Switch to clang-format check action
Instead of running clang-format outselves on the old Ubuntu version. This let's us easily configure which version of clang-format we want to execute. Used action: https://github.com/marketplace/actions/clang-format-check Properly fix: https://github.com/profanity-im/profanity/pull/1774
This commit is contained in:
parent
9bce23e075
commit
663c773bff
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@ -36,24 +36,13 @@ jobs:
|
|||||||
run: ./ci-build.sh
|
run: ./ci-build.sh
|
||||||
|
|
||||||
code-style:
|
code-style:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
name: Check coding style
|
name: Check coding style
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install dependencies
|
- name: Run clang-format
|
||||||
run: |
|
uses: jidicula/clang-format-action@v4.11.0
|
||||||
sudo apt update
|
with:
|
||||||
sudo apt install -y --no-install-recommends autoconf autoconf-archive automake expect gcc git libcmocka-dev libcurl3-dev libgcrypt-dev libglib2.0-dev libgpgme11-dev libgtk2.0-dev libmicrohttpd-dev libncursesw5-dev libnotify-dev libotr5-dev libreadline-dev libsignal-protocol-c-dev libssl-dev libtool libxss-dev make pkg-config python3-dev python-dev-is-python3 libsqlite3-dev
|
clang-format-version: '16'
|
||||||
- name: Install libstrophe
|
check-path: 'src'
|
||||||
run: |
|
|
||||||
git clone https://github.com/strophe/libstrophe ../libstrophe
|
|
||||||
cd ../libstrophe && ./bootstrap.sh && ./configure && make -j$(nproc) && sudo make install
|
|
||||||
- name: Configure
|
|
||||||
run: |
|
|
||||||
./bootstrap.sh
|
|
||||||
./configure
|
|
||||||
- name: Check style
|
|
||||||
run: |
|
|
||||||
make format
|
|
||||||
git diff --exit-code
|
|
||||||
|
Loading…
Reference in New Issue
Block a user