Skip to content

Commit c686b68

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

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
# 3 jobs in total
18-
os: [ubuntu-latest, macos-latest]
18+
os: [ubuntu-latest, macos-14]
1919
compiler: [{
2020
"cc": "gcc",
2121
"cxx": "g++"
@@ -24,7 +24,7 @@ jobs:
2424
"cxx": "clang++"
2525
}]
2626
exclude:
27-
- os: macos-latest
27+
- os: macos-14
2828
compiler:
2929
cc: gcc
3030
steps:
@@ -45,10 +45,9 @@ jobs:
4545
env:
4646
CC: ${{ matrix.compiler.cc }}
4747
CXX: ${{ matrix.compiler.cxx }}
48+
CURL_SSL_BACKEND: SecureTransport
4849
run: cmake . -Bbuild
4950
- name: build
50-
env:
51-
CURL_SSL_BACKEND: SecureTransport
5251
run: cmake --build build -- -j4
5352
- name: test
5453
env:

.github/workflows/clang-tidy.yml

+6-21
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,19 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: macOS-latest
13+
runs-on: ubuntu-latest
14+
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
1415
steps:
1516
- uses: actions/checkout@v1
1617
name: checkout
1718
with:
1819
submodules: true
1920
clean: true
2021
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
2722
- name: run checks
28-
env:
29-
CURL_SSL_BACKEND: SecureTransport
3023
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
4328

housekeeping/clang-tidy-diff.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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)"

0 commit comments

Comments
 (0)