19
19
with :
20
20
fetch-depth : 2
21
21
- uses : actions/setup-python@v5
22
+ with :
23
+ python-version : ' 3.x'
24
+ check-latest : true
22
25
- name : Install dependencies
23
26
run : |
24
27
python -m venv venv
27
30
lsblk -l
28
31
echo "sda rotational = $(cat /sys/block/sda/queue/rotational)"
29
32
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') }}
34
33
- name : Run pre-commit checks
35
34
run : |
36
35
source venv/bin/activate
43
42
container : ["ubuntu-dev:20", "alpine-dev:latest"]
44
43
build-type : [Debug, Release]
45
44
compiler : [{ cxx: g++, c: gcc }]
46
- cxx_flags : ["-Werror"]
45
+ # -no-pie to disable address randomization so we could symbolize stacktraces
46
+ cxx_flags : ["-Werror -no-pie"]
47
47
sanitizers : ["NoSanitizers"]
48
48
include :
49
49
- container : " alpine-dev:latest"
59
59
sanitizers : " Sanitizers"
60
60
61
61
runs-on : ubuntu-latest
62
- env :
63
- SCCACHE_GHA_ENABLED : " true"
64
- SCCACHE_CACHE_SIZE : 6G
65
- SCCACHE_ERROR_LOG : /tmp/sccache_log.txt
66
- # SCCACHE_LOG: debug
67
-
68
62
container :
69
63
image : ghcr.io/romange/${{ matrix.container }}
70
64
# Seems that docker by default prohibits running iouring syscalls
99
93
touch /mnt/foo
100
94
ls -la /mnt/foo
101
95
102
- - name : Run sccache-cache
103
- uses :
mozilla-actions/[email protected]
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 || '')
111
-
112
96
- name : Configure CMake
113
97
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
114
98
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
@@ -129,14 +113,12 @@ jobs:
129
113
export USAN="ON"
130
114
fi
131
115
132
- # -no-pie to disable address randomization so we could symbolize stacktraces
133
116
cmake -B ${GITHUB_WORKSPACE}/build \
134
117
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
135
118
-GNinja \
136
119
-DCMAKE_C_COMPILER="${{matrix.compiler.c}}" \
137
120
-DCMAKE_CXX_COMPILER="${{matrix.compiler.cxx}}" \
138
- -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache \
139
- -DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}} -no-pie" -DWITH_AWS:BOOL=OFF \
121
+ -DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}}" -DWITH_AWS:BOOL=OFF \
140
122
-DWITH_ASAN="${ASAN}" \
141
123
-DWITH_USAN="${USAN}" \
142
124
-L
0 commit comments