Skip to content

Commit c1d251d

Browse files
committed
try fix ci
Signed-off-by: turuslan <[email protected]>
1 parent e7619d1 commit c1d251d

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
runs-on: macos-14
1414
steps:
1515
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
16+
- name: venv
17+
run: python3 -m venv --upgrade-deps ~/venv && housekeeping/github_venv.sh $_
1618
- name: install
1719
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
2122
brew install ninja
2223
- name: cmake
2324
env:
@@ -38,19 +39,18 @@ jobs:
3839
compiler: [{
3940
"cc": "gcc",
4041
"cxx": "g++"
41-
}, {
42+
}, {
4243
"cc": "clang",
4344
"cxx": "clang++"
4445
}]
4546
steps:
46-
- name: venv
47-
run: ./housekeeping/github_venv.sh
4847
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
48+
- name: venv
49+
run: housekeeping/github_venv.sh /venv/bin/activate
4950
- name: cmake
5051
env:
5152
CC: ${{ matrix.compiler.cc }}
5253
CXX: ${{ matrix.compiler.cxx }}
53-
shell: bash
5454
run: cmake -B build .
5555
- name: build
5656
run: cmake --build build -- -j4

.github/workflows/clang-tidy.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
1515
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
2219
- name: run checks
2320
env:
2421
BUILD_DIR: build
25-
shell: bash
2622
run: |
27-
source /venv/bin/activate
2823
cmake -B $BUILD_DIR .
2924
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
3127

housekeeping/clang-tidy-diff.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: Apache-2.0
66
#
77

8-
BUILD_DIR="${BUILD_DIR:-build}"
8+
BUILD_DIR="${BUILD_DIR:?}"
99

1010
cd $(dirname $0)/..
1111
git diff -U0 HEAD^ | clang-tidy-diff.py -p1 -path $BUILD_DIR -regex "\.(hpp|h)"

0 commit comments

Comments
 (0)