-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.07 KB
/
ci.yml
File metadata and controls
55 lines (47 loc) · 1.07 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# Copyright © 2021-2024 Matt Robinson
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: CI
on:
push:
branches-ignore: dependabot/**
pull_request:
schedule:
- cron: '30 12 * * 5'
permissions:
contents: read
jobs:
overcommit:
name: Overcommit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Cppcheck package
run: sudo apt-get install cppcheck
- name: Install Overcommit and sign
run: |
sudo gem install overcommit --no-document
overcommit --sign
overcommit --sign pre-commit
- name: Run hooks
env:
GIT_AUTHOR_NAME: Dummy
GIT_AUTHOR_EMAIL: dummy@example.com
run: overcommit --run
build:
name: Build and test
strategy:
matrix:
runner:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Build
run: |
cmake -S . -B build
cmake --build build