File tree 3 files changed +20
-25
lines changed
3 files changed +20
-25
lines changed Original file line number Diff line number Diff line change 15
15
fail-fast : false
16
16
matrix :
17
17
# 3 jobs in total
18
- os : [ubuntu-latest, macos-latest ]
18
+ os : [ubuntu-latest, macos-14 ]
19
19
compiler : [{
20
20
" cc " : " gcc" ,
21
21
" cxx " : " g++"
24
24
" cxx " : " clang++"
25
25
}]
26
26
exclude :
27
- - os : macos-latest
27
+ - os : macos-14
28
28
compiler :
29
29
cc : gcc
30
30
steps :
45
45
env :
46
46
CC : ${{ matrix.compiler.cc }}
47
47
CXX : ${{ matrix.compiler.cxx }}
48
+ CURL_SSL_BACKEND : SecureTransport
48
49
run : cmake . -Bbuild
49
50
- name : build
50
- env :
51
- CURL_SSL_BACKEND : SecureTransport
52
51
run : cmake --build build -- -j4
53
52
- name : test
54
53
env :
Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- runs-on : macOS-latest
13
+ runs-on : ubuntu-latest
14
+ container : qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
14
15
steps :
15
16
- uses : actions/checkout@v1
16
17
name : checkout
17
18
with :
18
19
submodules : true
19
20
clean : true
20
21
fetch-depth : 1
21
- - name : install
22
- run : |
23
- brew install ninja llvm
24
- sudo python3 -m pip install --upgrade pip
25
- sudo python3 -m pip install scikit-build
26
- sudo python3 -m pip install cmake requests gitpython gcovr pyyaml
27
22
- name : run checks
28
- env :
29
- CURL_SSL_BACKEND : SecureTransport
30
23
run : |
31
- #!/bin/bash
32
- LLVM_DIR=/usr/local/Cellar/llvm
33
- test -d $LLVM_DIR || echo $(echo "llvm is absent, cannot continue" && exit 1)
34
- VER_COUNT=$(ls -1 ${LLVM_DIR} | wc -l)
35
- test ${VER_COUNT} -eq 0 && echo "no llvm version detected" && exit 1
36
- test $VER_COUNT -gt 1 && echo "wrong llvm installation" && exit 1
37
- LLVM_VER=$(ls -1 ${LLVM_DIR})
38
- export LLVM_ROOT=${LLVM_DIR}/${LLVM_VER}
39
- export PATH=${LLVM_ROOT}/bin:${LLVM_ROOT}/share/clang:${PATH}
40
- cmake . -GNinja -Bbuild
41
- cmake --build build --target generated
42
- housekeeping/clang-tidy.sh build
24
+ export BUILD_DIR=build
25
+ cmake -G Ninja -B $BUILD_DIR .
26
+ cmake --build $BUILD_DIR --target generated
27
+ ./housekeeping/clang-tidy-diff.sh
43
28
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -xe
2
+ #
3
+ # Copyright Quadrivium LLC
4
+ # All Rights Reserved
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+
8
+ BUILD_DIR=" ${BUILD_DIR:- build} "
9
+
10
+ cd $( dirname $0 ) /..
11
+ git diff -U0 HEAD^ | clang-tidy-diff.py -p1 -path $BUILD_DIR -regex " \.(hpp|h)"
You can’t perform that action at this time.
0 commit comments