diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index 857ca24a..aaaf81b8 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -1,4 +1,5 @@ name: Shirakami-Install-Dependencies +description: Install dependencies for Shirakami inputs: checkout: @@ -37,7 +38,7 @@ runs: rm -fr build mkdir build cd build - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBUILD_TESTS=OFF -DBUILD_DOCUMENTS=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/.local ${{ inputs.cmake_build_option }} .. + cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBUILD_TESTS=OFF -DBUILD_DOCUMENTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_STRICT=OFF -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/.local ${{ inputs.cmake_build_option }} .. cmake --build . --target install --clean-first shell: bash @@ -47,6 +48,6 @@ runs: rm -fr build mkdir build cd build - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBUILD_TESTS=OFF -DBUILD_DOCUMENTS=OFF -DBUILD_BENCHMARK=OFF -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/.local ${{ inputs.cmake_build_option }} .. + cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBUILD_TESTS=OFF -DBUILD_DOCUMENTS=OFF -DBUILD_BENCHMARK=OFF -DBUILD_STRICT=OFF -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/.local ${{ inputs.cmake_build_option }} .. cmake --build . --target install --clean-first shell: bash diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e3412aa1..6534215a 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -2,7 +2,11 @@ name: Shirakami-CI on: push: + paths-ignore: + - '**.md' pull_request: + paths-ignore: + - '**.md' workflow_dispatch: inputs: os: @@ -94,12 +98,19 @@ jobs: image: ghcr.io/project-tsurugi/tsurugi-ci:almalinux-latest volumes: - ${{ vars.ccache_dir }}:${{ vars.ccache_dir }} + - ${{ vars.ctcache_dir }}:${{ vars.ctcache_dir }} defaults: run: shell: bash env: CCACHE_CONFIGPATH: ${{ vars.ccache_dir }}/ccache.conf CCACHE_DIR: ${{ vars.ccache_dir }}/almalinux-latest + + CTCACHE_DISABLE: ${{ vars.ctcache_disable }} + CTCACHE_DIR: ${{ vars.ctcache_dir }}/almalinux-latest + CTCACHE_SAVE_OUTPUT: 1 + CTCACHE_LOCAL: 1 + CC: clang CXX: 'clang++ -march=native' @@ -123,8 +134,8 @@ jobs: - name: Clang-Tidy run: | - #python3 tools/bin/run-clang-tidy.py -quiet -export-fixes=build/clang-tidy-fix.yaml -p build -extra-arg=-Wno-unknown-warning-option -extra-arg=-fsized-deallocation -header-filter=$(pwd)'/(include|src|bench)/.*\.(h|hh)$' $(pwd)'/(src|bench)/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}' - python3 tools/bin/run-clang-tidy.py -quiet -export-fixes=build/clang-tidy-fix.yaml -p build -extra-arg=-Wno-unknown-warning-option -extra-arg=-fsized-deallocation -header-filter=$(pwd)'/(include|src)/.*\.(h|hh)$' $(pwd)'/src/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}' + #python3 tools/bin/run-clang-tidy.py -clang-tidy-binary=/opt/ctcache/clang-tidy -quiet -export-fixes=build/clang-tidy-fix.yaml -p build -extra-arg=-Wno-unknown-warning-option -extra-arg=-fsized-deallocation -header-filter=$(pwd)'/(include|src|bench)/.*\.(h|hh)$' $(pwd)'/(src|bench)/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}' + python3 tools/bin/run-clang-tidy.py -clang-tidy-binary=/opt/ctcache/clang-tidy -quiet -export-fixes=build/clang-tidy-fix.yaml -p build -extra-arg=-Wno-unknown-warning-option -extra-arg=-fsized-deallocation -header-filter=$(pwd)'/(include|src)/.*\.(h|hh)$' $(pwd)'/src/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}' - name: Doxygen run: |