Skip to content

Commit 9c0282b

Browse files
authored
Merge pull request #184 from project-tsurugi/ci-optimize
ci: improvement for utilization and optimization
2 parents 6b3b486 + 374dec6 commit 9c0282b

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Shirakami-Install-Dependencies
2+
description: Install dependencies for Shirakami
23

34
inputs:
45
checkout:
@@ -37,7 +38,7 @@ runs:
3738
rm -fr build
3839
mkdir build
3940
cd build
40-
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 }} ..
41+
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 }} ..
4142
cmake --build . --target install --clean-first
4243
shell: bash
4344

@@ -47,6 +48,6 @@ runs:
4748
rm -fr build
4849
mkdir build
4950
cd build
50-
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 }} ..
51+
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 }} ..
5152
cmake --build . --target install --clean-first
5253
shell: bash

.github/workflows/ci-build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Shirakami-CI
22

33
on:
44
push:
5+
paths-ignore:
6+
- '**.md'
57
pull_request:
8+
paths-ignore:
9+
- '**.md'
610
workflow_dispatch:
711
inputs:
812
os:
@@ -94,12 +98,19 @@ jobs:
9498
image: ghcr.io/project-tsurugi/tsurugi-ci:almalinux-latest
9599
volumes:
96100
- ${{ vars.ccache_dir }}:${{ vars.ccache_dir }}
101+
- ${{ vars.ctcache_dir }}:${{ vars.ctcache_dir }}
97102
defaults:
98103
run:
99104
shell: bash
100105
env:
101106
CCACHE_CONFIGPATH: ${{ vars.ccache_dir }}/ccache.conf
102107
CCACHE_DIR: ${{ vars.ccache_dir }}/almalinux-latest
108+
109+
CTCACHE_DISABLE: ${{ vars.ctcache_disable }}
110+
CTCACHE_DIR: ${{ vars.ctcache_dir }}/almalinux-latest
111+
CTCACHE_SAVE_OUTPUT: 1
112+
CTCACHE_LOCAL: 1
113+
103114
CC: clang
104115
CXX: 'clang++ -march=native'
105116

@@ -123,8 +134,8 @@ jobs:
123134
124135
- name: Clang-Tidy
125136
run: |
126-
#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"}'
127-
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"}'
137+
#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"}'
138+
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"}'
128139
129140
- name: Doxygen
130141
run: |

0 commit comments

Comments
 (0)