Skip to content

Commit ef5090a

Browse files
committed
GH-50991: [CI] Enable sccache just like ccache on Docker-based builds
1 parent 3e6f730 commit ef5090a

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

compose.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ services:
507507
shm_size: *shm-size
508508
ulimits: *ulimits
509509
environment:
510-
<<: [*common, *ccache, *cpp]
510+
<<: [*common, *ccache, *sccache, *cpp]
511511
ARROW_DEPENDENCY_SOURCE: BUNDLED
512512
ARROW_OFFLINE: ON
513513
# Apache ORC always uses external orc-format.
@@ -668,7 +668,7 @@ services:
668668
shm_size: *shm-size
669669
volumes: *ubuntu-volumes
670670
environment:
671-
<<: [*common, *ccache, *cpp]
671+
<<: [*common, *ccache, *sccache, *cpp]
672672
CC: clang-${CLANG_TOOLS}
673673
CXX: clang++-${CLANG_TOOLS}
674674
# Avoid creating huge static libraries
@@ -805,7 +805,7 @@ services:
805805
- ${REPO}:${ARCH_SHORT}-cpp-jni-${VCPKG}
806806
secrets: *vcpkg-build-secrets
807807
environment:
808-
<<: [*common, *ccache]
808+
<<: [*common, *ccache, *sccache]
809809
volumes:
810810
- .:/arrow:delegated
811811
- ${DOCKER_VOLUME_PREFIX}cpp-jni-ccache:/ccache:delegated
@@ -833,7 +833,7 @@ services:
833833
shm_size: *shm-size
834834
ulimits: *ulimits
835835
environment:
836-
<<: [*common, *ccache]
836+
<<: [*common, *ccache, *sccache]
837837
BUILD_DOCS_C_GLIB: "ON"
838838
volumes: *debian-volumes
839839
command: &c-glib-command >
@@ -862,7 +862,7 @@ services:
862862
shm_size: *shm-size
863863
ulimits: *ulimits
864864
environment:
865-
<<: [*common, *ccache]
865+
<<: [*common, *ccache, *sccache]
866866
volumes: *ubuntu-volumes
867867
command: *c-glib-command
868868

@@ -893,7 +893,7 @@ services:
893893
shm_size: *shm-size
894894
ulimits: *ulimits
895895
environment:
896-
<<: [*common, *ccache]
896+
<<: [*common, *ccache, *sccache]
897897
BUILD_DOCS_C_GLIB: "ON"
898898
volumes: *debian-volumes
899899
command: &ruby-command >
@@ -925,7 +925,7 @@ services:
925925
shm_size: *shm-size
926926
ulimits: *ulimits
927927
environment:
928-
<<: [*common, *ccache]
928+
<<: [*common, *ccache, *sccache]
929929
volumes: *ubuntu-volumes
930930
command: *ruby-command
931931

@@ -1067,7 +1067,7 @@ services:
10671067
base: ${REPO}:${ARCH_SHORT}-debian-${DEBIAN}-cpp
10681068
shm_size: *shm-size
10691069
environment:
1070-
<<: [*common, *ccache]
1070+
<<: [*common, *ccache, *sccache]
10711071
volumes: *debian-volumes
10721072
command: *python-command
10731073

@@ -1090,7 +1090,7 @@ services:
10901090
base: ${REPO}:${ARCH_SHORT}-ubuntu-${UBUNTU}-cpp
10911091
shm_size: *shm-size
10921092
environment:
1093-
<<: [*common, *ccache]
1093+
<<: [*common, *ccache, *sccache]
10941094
volumes: *ubuntu-volumes
10951095
command: *python-command
10961096

@@ -1113,7 +1113,7 @@ services:
11131113
base: ${REPO}:${ARCH_SHORT}-fedora-${FEDORA}-cpp
11141114
shm_size: *shm-size
11151115
environment:
1116-
<<: [*common, *ccache]
1116+
<<: [*common, *ccache, *sccache]
11171117
volumes: *fedora-volumes
11181118
command: *python-command
11191119

@@ -1157,7 +1157,7 @@ services:
11571157
base: ${REPO}:${ARCH_SHORT}-ubuntu-${UBUNTU}-cpp
11581158
shm_size: *shm-size
11591159
environment:
1160-
<<: [*common, *ccache]
1160+
<<: [*common, *ccache, *sccache]
11611161
# Bundled build of OpenTelemetry needs a git client
11621162
ARROW_WITH_OPENTELEMETRY: "OFF"
11631163
PYARROW_VERSION: ${PYARROW_VERSION:-}
@@ -1189,7 +1189,7 @@ services:
11891189
- ${REPO}:${ARCH_SHORT}-python-${PYTHON}-wheel-manylinux-2-28-vcpkg-${VCPKG}
11901190
secrets: *vcpkg-build-secrets
11911191
environment:
1192-
<<: [*common, *ccache]
1192+
<<: [*common, *ccache, *sccache]
11931193
volumes:
11941194
- .:/arrow:delegated
11951195
- ${DOCKER_VOLUME_PREFIX}python-wheel-manylinux-2-28-ccache:/ccache:delegated
@@ -1214,7 +1214,7 @@ services:
12141214
- ${REPO}:${ARCH_SHORT}-python-${PYTHON}-wheel-musllinux-1-2-vcpkg-${VCPKG}
12151215
secrets: *vcpkg-build-secrets
12161216
environment:
1217-
<<: [ *common, *ccache ]
1217+
<<: [*common, *ccache, *sccache]
12181218
volumes:
12191219
- .:/arrow:delegated
12201220
- ${DOCKER_VOLUME_PREFIX}python-wheel-musllinux-1-2-ccache:/ccache:delegated
@@ -1541,7 +1541,7 @@ services:
15411541
cap_add:
15421542
- SYS_ADMIN
15431543
environment:
1544-
<<: [*common, *ccache]
1544+
<<: [*common, *ccache, *sccache]
15451545
ARROW_SUBSTRAIT: "ON"
15461546
LC_ALL: "C.UTF-8"
15471547
LANG: "C.UTF-8"
@@ -1583,7 +1583,7 @@ services:
15831583
dask: ${DASK}
15841584
shm_size: *shm-size
15851585
environment:
1586-
<<: [*common, *ccache]
1586+
<<: [*common, *ccache, *sccache]
15871587
volumes: *conda-volumes
15881588
command:
15891589
["/arrow/ci/scripts/cpp_build.sh /arrow /build &&
@@ -1610,7 +1610,7 @@ services:
16101610
python: ${PYTHON}
16111611
shm_size: *shm-size
16121612
environment:
1613-
<<: [*common, *ccache]
1613+
<<: [*common, *ccache, *sccache]
16141614
PYTEST_ARGS: # inherit
16151615
volumes: *conda-volumes
16161616
command: *python-conda-command
@@ -1865,7 +1865,7 @@ services:
18651865
node: ${NODE}
18661866
volumes: *conda-volumes
18671867
environment:
1868-
<<: [*common, *ccache]
1868+
<<: [*common, *ccache, *sccache]
18691869
ARCHERY_INTEGRATION_WITH_GO: 0
18701870
ARCHERY_INTEGRATION_WITH_NANOARROW: 0
18711871
ARCHERY_INTEGRATION_WITH_RUST: 0
@@ -1901,7 +1901,7 @@ services:
19011901
cap_add:
19021902
- SYS_ADMIN
19031903
environment:
1904-
<<: [*common, *ccache]
1904+
<<: [*common, *ccache, *sccache]
19051905
ARROW_AZURE: "ON"
19061906
ARROW_CUDA: "ON"
19071907
ARROW_CXX_FLAGS_DEBUG: "-g1"
@@ -1979,7 +1979,7 @@ services:
19791979
links:
19801980
- impala:impala
19811981
environment:
1982-
<<: [*common, *ccache]
1982+
<<: [*common, *ccache, *sccache]
19831983
ARROW_ENGINE: "OFF"
19841984
ARROW_FLIGHT: "OFF"
19851985
ARROW_FLIGHT_SQL: "OFF"
@@ -2021,7 +2021,7 @@ services:
20212021
numpy: ${NUMPY}
20222022
shm_size: *shm-size
20232023
environment:
2024-
<<: [*common, *ccache]
2024+
<<: [*common, *ccache, *sccache]
20252025
volumes: *conda-maven-volumes
20262026
command:
20272027
["/arrow/ci/scripts/cpp_build.sh /arrow /build &&
@@ -2037,7 +2037,7 @@ services:
20372037
- ${DOCKER_VOLUME_PREFIX}conda-ccache:/ccache:delegated
20382038
shm_size: '1gb'
20392039
environment:
2040-
<<: [*common, *ccache]
2040+
<<: [*common, *ccache, *sccache]
20412041
CMAKE_GENERATOR: Ninja
20422042
DEBIAN_FRONTEND: "noninteractive"
20432043
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
@@ -2070,7 +2070,7 @@ services:
20702070
- ${DOCKER_VOLUME_PREFIX}almalinux-ccache:/ccache:delegated
20712071
shm_size: '1gb'
20722072
environment:
2073-
<<: [*common, *ccache]
2073+
<<: [*common, *ccache, *sccache]
20742074
CMAKE_GENERATOR: Ninja
20752075
SSL_CERT_FILE: /etc/ssl/certs/ca-bundle.crt # required due to issue in RHEL-8 based images. See GH-49757
20762076
TEST_APT: 0 # would require docker-in-docker
@@ -2100,7 +2100,7 @@ services:
21002100
- ${DOCKER_VOLUME_PREFIX}ubuntu-ccache:/ccache:delegated
21012101
shm_size: '1gb'
21022102
environment:
2103-
<<: [*common, *ccache]
2103+
<<: [*common, *ccache, *sccache]
21042104
CMAKE_GENERATOR: Ninja
21052105
TEST_APT: 0 # would require docker-in-docker
21062106
TEST_YUM: 0

0 commit comments

Comments
 (0)