-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (59 loc) · 1.52 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: ci
env:
CTEST_NO_TESTS_ACTION: error
HOMEBREW_NO_INSTALL_CLEANUP: 1
on:
push:
paths:
- "**.c"
- "**.cc"
- "**.cpp"
- "**.h"
- "**/CMakeLists.txt"
- "**.cmake"
- "**.json"
- ".github/linters/*"
- ".github/workflows/ci.yml"
permissions: read-all
jobs:
build:
name: Build SDK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y autoconf autoconf-archive build-essential
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
runVcpkgInstall: false
- name: Setup cmake
uses: lukka/get-cmake@latest
- name: Build
uses: lukka/run-cmake@v10
with:
configurePreset: ci
buildPreset: ninja
- name: Run Tests
run: build/tests/iggy_cpp_test
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0
- name: Super-linter
uses: super-linter/[email protected] # x-release-please-version
env:
DOCKERFILE_HADOLINT: false
FILTER_REGEX_EXCLUDE: .devcontainer/install-vcpkg.sh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}