Skip to content

Commit f08b784

Browse files
authored
Merge pull request #48 from project-tsurugi/ci-optimize
ci: improvement for utilization and optimization
2 parents 1c2c1eb + 01931c6 commit f08b784

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci-build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Takatori-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:
@@ -61,12 +65,21 @@ jobs:
6165
timeout-minutes: 30
6266
container:
6367
image: ghcr.io/project-tsurugi/tsurugi-ci:almalinux-latest
68+
volumes:
69+
- ${{ vars.ccache_dir }}:${{ vars.ccache_dir }}
70+
- ${{ vars.ctcache_dir }}:${{ vars.ctcache_dir }}
6471
defaults:
6572
run:
6673
shell: bash
6774
env:
6875
CCACHE_CONFIGPATH: ${{ vars.ccache_dir }}/ccache.conf
6976
CCACHE_DIR: ${{ vars.ccache_dir }}/almalinux-latest
77+
78+
CTCACHE_DISABLE: ${{ vars.ctcache_disable }}
79+
CTCACHE_DIR: ${{ vars.ctcache_dir }}/almalinux-latest
80+
CTCACHE_SAVE_OUTPUT: 1
81+
CTCACHE_LOCAL: 1
82+
7083
CC: clang
7184
CXX: clang++
7285

@@ -85,7 +98,7 @@ jobs:
8598
8699
- name: Clang-Tidy
87100
run: |
88-
python3 tools/bin/run-clang-tidy.py -quiet -export-fixes=build/clang-tidy-fix.yaml -p build -extra-arg=-Wno-unknown-warning-option -header-filter=$(pwd)'/(include|src)/.*\.h$' -exclude='(parser|scanner)\.cpp$' $(pwd)'/src/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}'
101+
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 -header-filter=$(pwd)'/(include|src)/.*\.h$' -exclude='(parser|scanner)\.cpp$' $(pwd)'/src/.*' 2>&1 | awk '!a[$0]++{print > "build/clang-tidy.log"}'
89102
90103
- name: Doxygen
91104
run: |

0 commit comments

Comments
 (0)