Skip to content

Commit ec2ec82

Browse files
feliwirOmniBlade
authored andcommitted
Skip formatting on Ubuntu 22.04
1 parent aaf436d commit ec2ec82

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/linux.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,34 @@ jobs:
4444
4545
- name: Install dependencies
4646
run: |
47-
sudo apt-get update && sudo apt-get install -y libgtk-3-dev ninja-build clang-format-10 libwxgtk3.0-gtk3-dev libavcodec-dev libavformat-dev
47+
sudo apt-get update && sudo apt-get install -y libgtk-3-dev ninja-build libwxgtk3.0-gtk3-dev libavcodec-dev libavformat-dev
4848
49-
- name: Build Thyme
49+
- name: Install formatter
50+
if: matrix.os != 'ubuntu-22.04'
51+
run: |
52+
sudo apt-get install -y clang-format-10
53+
54+
- name: Configure Thyme
5055
env:
5156
CC: ${{ steps.vars.outputs.cc }}
5257
CXX: ${{ steps.vars.outputs.cxx }}
5358
run: |
5459
cmake -DBUILD_TOOLS=ON -DLOGGING=ON -DSTANDALONE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON -DUSE_CRASHPAD=ON -B build -G Ninja
60+
61+
- name: Formatting check
62+
if: matrix.os != 'ubuntu-22.04'
63+
env:
64+
CC: ${{ steps.vars.outputs.cc }}
65+
CXX: ${{ steps.vars.outputs.cxx }}
66+
run: |
5567
cmake --build build --target format
5668
git diff --exit-code
69+
70+
- name: Build Thyme
71+
env:
72+
CC: ${{ steps.vars.outputs.cc }}
73+
CXX: ${{ steps.vars.outputs.cxx }}
74+
run: |
5775
cmake --build build
5876
5977
- name: Test Thyme

0 commit comments

Comments
 (0)