-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.03 KB
/
Copy pathlint.yml
File metadata and controls
37 lines (31 loc) · 1.03 KB
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
# Copyright (c) Brandon Pacewic
# SPDX-License-Identifier: MIT
name: Lint
on:
pull_request:
branches:
- mega
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y clang-format cmake ccache
- name: Restore ccache
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ runner.os }}-${{ hashFiles('cpl/inc/**', 'tests/**/*.cpp', 'CMakeLists.txt', 'cpl/CMakeLists.txt', 'tests/CMakeLists.txt') }}
restore-keys: ccache-${{ runner.os }}-
- name: Configure ccache
run: ccache --set-config max_size=500M
- name: Run lint
run: scripts/lint.sh
- name: Save ccache
uses: actions/cache/save@v4
if: always()
with:
path: ~/.cache/ccache
key: ccache-${{ runner.os }}-${{ hashFiles('cpl/inc/**', 'tests/**/*.cpp', 'CMakeLists.txt', 'cpl/CMakeLists.txt', 'tests/CMakeLists.txt') }}