File tree 3 files changed +13
-17
lines changed
3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ jobs:
13
13
runs-on : macos-14
14
14
steps :
15
15
- uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
16
+ - name : venv
17
+ run : python3 -m venv --upgrade-deps ~/venv && housekeeping/github_venv.sh $_
16
18
- name : install
17
19
run : |
18
- python3 -m pip install --upgrade pip
19
- python3 -m pip install scikit-build
20
- python3 -m pip install cmake==3.25 requests gitpython gcovr
20
+ pip3 install scikit-build
21
+ pip3 install cmake==3.25 requests gitpython gcovr
21
22
brew install ninja
22
23
- name : cmake
23
24
env :
@@ -38,19 +39,18 @@ jobs:
38
39
compiler : [{
39
40
" cc " : " gcc" ,
40
41
" cxx " : " g++"
41
- }, {
42
+ }, {
42
43
" cc " : " clang" ,
43
44
" cxx " : " clang++"
44
45
}]
45
46
steps :
46
- - name : venv
47
- run : ./housekeeping/github_venv.sh
48
47
- uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
48
+ - name : venv
49
+ run : housekeeping/github_venv.sh /venv/bin/activate
49
50
- name : cmake
50
51
env :
51
52
CC : ${{ matrix.compiler.cc }}
52
53
CXX : ${{ matrix.compiler.cxx }}
53
- shell : bash
54
54
run : cmake -B build .
55
55
- name : build
56
56
run : cmake --build build -- -j4
Original file line number Diff line number Diff line change @@ -13,19 +13,15 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
container : qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
15
15
steps :
16
- - uses : actions/checkout@v1
17
- name : checkout
18
- with :
19
- submodules : true
20
- clean : true
21
- fetch-depth : 1
16
+ - uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
17
+ - name : venv
18
+ run : housekeeping/github_venv.sh /venv/bin/activate
22
19
- name : run checks
23
20
env :
24
21
BUILD_DIR : build
25
- shell : bash
26
22
run : |
27
- source /venv/bin/activate
28
23
cmake -B $BUILD_DIR .
29
24
cmake --build $BUILD_DIR --target generated
30
- ./housekeeping/clang-tidy-diff.sh
25
+ git config --global --add safe.directory $PWD
26
+ housekeeping/clang-tidy-diff.sh
31
27
Original file line number Diff line number Diff line change 5
5
# SPDX-License-Identifier: Apache-2.0
6
6
#
7
7
8
- BUILD_DIR=" ${BUILD_DIR:- build } "
8
+ BUILD_DIR=" ${BUILD_DIR:? } "
9
9
10
10
cd $( dirname $0 ) /..
11
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