Skip to content

Commit

Permalink
llvm 19
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Aug 21, 2024
1 parent 92c45e0 commit 7797060
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ jobs:
- name: "Build target"
working-directory: ./housekeeping/docker/kagome-dev
run: make kagome_dev_docker_build_tidy \
run:
make kagome_dev_docker_build_tidy \
DOCKER_REGISTRY_PATH=${DOCKER_REGISTRY_PATH} \
GITHUB_HUNTER_USERNAME=${{ secrets.HUNTER_USERNAME }} \
GITHUB_HUNTER_TOKEN=${{ secrets.HUNTER_TOKEN }}
Expand Down
6 changes: 5 additions & 1 deletion housekeeping/clang-tidy-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@

BUILD_DIR="${BUILD_DIR:-build}"
CLANG_TIDY_BIN="${CLANG_TIDY_BIN:-clang-tidy}"
CI="${CI:-false}"

if [ "${CI}" == "true" ]; then
git fetch origin master
fi

cd $(dirname $0)/..
# exclude WAVM because on CI clang-tidy is run on a WasmEdge build
git fetch origin master
git diff -U0 origin/master -- . ':!core/runtime/wavm' | clang-tidy-diff.py -p1 -path ${BUILD_DIR} -iregex '(core|node)\/.*\.(h|c|hpp|cpp)' -clang-tidy-binary ${CLANG_TIDY_BIN} | tee clang-tidy.log
! grep ': error:' clang-tidy.log
2 changes: 1 addition & 1 deletion housekeeping/docker/kagome-dev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ kagome_dev_docker_build_tidy:
echo \"Building in $$(pwd)\" && \
cmake . -B\"$(BUILD_DIR)\" -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=\"$(BUILD_TYPE)\" -DBACKWARD=OFF -DWERROR=$(WERROR) && \
cmake --build \"$(BUILD_DIR)\" --target generated -- -j${BUILD_THREADS} && \
cd /opt/kagome/ && ./housekeeping/clang-tidy-diff.sh \
cd /opt/kagome/ && export CI='true' && ./housekeeping/clang-tidy-diff.sh \
" || DOCKER_EXEC_RESULT=$$? ; \
if [ $$DOCKER_EXEC_RESULT -ne 0 ]; then \
echo "Error: Docker exec failed with return code $$DOCKER_EXEC_RESULT"; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG RUST_VERSION
ARG ARCHITECTURE=x86_64

ARG DEBIAN_VERSION=bookworm
ARG LLVM_VERSION=18
ARG LLVM_VERSION=19

FROM ${BASE_IMAGE}

Expand Down

0 comments on commit 7797060

Please sign in to comment.