2727 lsblk -l
2828 echo "sda rotational = $(cat /sys/block/sda/queue/rotational)"
2929 echo "sdb rotational = $(cat /sys/block/sdb/queue/rotational)"
30- - uses : actions/cache@v4
31- with :
32- path : ~/.cache/pre-commit
33- key : pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3430 - name : Run pre-commit checks
3531 run : |
3632 source venv/bin/activate
4339 container : ["ubuntu-dev:20", "alpine-dev:latest"]
4440 build-type : [Debug, Release]
4541 compiler : [{ cxx: g++, c: gcc }]
46- cxx_flags : ["-Werror"]
42+ # -no-pie to disable address randomization so we could symbolize stacktraces
43+ cxx_flags : ["-Werror", "-no-pie"]
4744 sanitizers : ["NoSanitizers"]
4845 include :
4946 - container : " alpine-dev:latest"
6158 runs-on : ubuntu-latest
6259 env :
6360 SCCACHE_GHA_ENABLED : " true"
64- SCCACHE_CACHE_SIZE : 6G
65- SCCACHE_ERROR_LOG : /tmp/sccache_log.txt
66- # SCCACHE_LOG: debug
6761
6862 container :
6963 image : ghcr.io/romange/${{ matrix.container }}
@@ -100,14 +94,7 @@ jobs:
10094 ls -la /mnt/foo
10195
10296 - name : Run sccache-cache
103- uses : mozilla-actions/sccache-action@v0.0.7
104-
105- - name : Configure Cache Env
106- uses : actions/github-script@v7
107- with :
108- script : |
109- core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
110- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '')
97+ uses : mozilla-actions/sccache-action@v0.0.8
11198
11299 - name : Configure CMake
113100 # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
@@ -129,14 +116,13 @@ jobs:
129116 export USAN="ON"
130117 fi
131118
132- # -no-pie to disable address randomization so we could symbolize stacktraces
133119 cmake -B ${GITHUB_WORKSPACE}/build \
134120 -DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
135121 -GNinja \
136122 -DCMAKE_C_COMPILER="${{matrix.compiler.c}}" \
137123 -DCMAKE_CXX_COMPILER="${{matrix.compiler.cxx}}" \
138124 -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache \
139- -DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}} -no-pie " -DWITH_AWS:BOOL=OFF \
125+ -DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}}" -DWITH_AWS:BOOL=OFF \
140126 -DWITH_ASAN="${ASAN}" \
141127 -DWITH_USAN="${USAN}" \
142128 -L
0 commit comments