-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (36 loc) · 1.08 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Linux build
jobs:
build_and_test:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- run: sudo apt-get update
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: gcc-10 clang clang-tidy cppcheck liblmdb-dev libmecab-dev libgtk-3-dev \
libx11-dev libcurl4-openssl-dev libnotify-dev libzip-dev zipcmp zipmerge ziptool libcgreen1-dev \
gperf gettext
version: 1.0
- name: Install LLVM and Clang 18
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
sudo apt-get install -y clang-format-18
- run: gcc --version
- run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON
- run: cmake --build build
- run: cmake --build build --target check-all
on:
push:
paths:
- 'src/**'
- 'include/**'
- '.github/**'
pull_request:
paths:
- 'src/**'
- 'include/**'
workflow_dispatch: