Skip to content

Commit

Permalink
try fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <[email protected]>
  • Loading branch information
turuslan committed Apr 3, 2024
1 parent e7619d1 commit c1d251d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
runs-on: macos-14
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: venv
run: python3 -m venv --upgrade-deps ~/venv && housekeeping/github_venv.sh $_
- name: install
run: |
python3 -m pip install --upgrade pip
python3 -m pip install scikit-build
python3 -m pip install cmake==3.25 requests gitpython gcovr
pip3 install scikit-build
pip3 install cmake==3.25 requests gitpython gcovr
brew install ninja
- name: cmake
env:
Expand All @@ -38,19 +39,18 @@ jobs:
compiler: [{
"cc": "gcc",
"cxx": "g++"
}, {
}, {
"cc": "clang",
"cxx": "clang++"
}]
steps:
- name: venv
run: ./housekeeping/github_venv.sh
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: venv
run: housekeeping/github_venv.sh /venv/bin/activate
- name: cmake
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
shell: bash
run: cmake -B build .
- name: build
run: cmake --build build -- -j4
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ jobs:
runs-on: ubuntu-latest
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
steps:
- uses: actions/checkout@v1
name: checkout
with:
submodules: true
clean: true
fetch-depth: 1
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: venv
run: housekeeping/github_venv.sh /venv/bin/activate
- name: run checks
env:
BUILD_DIR: build
shell: bash
run: |
source /venv/bin/activate
cmake -B $BUILD_DIR .
cmake --build $BUILD_DIR --target generated
./housekeeping/clang-tidy-diff.sh
git config --global --add safe.directory $PWD
housekeeping/clang-tidy-diff.sh
2 changes: 1 addition & 1 deletion housekeeping/clang-tidy-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#

BUILD_DIR="${BUILD_DIR:-build}"
BUILD_DIR="${BUILD_DIR:?}"

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

0 comments on commit c1d251d

Please sign in to comment.