Skip to content

Commit 6c19e62

Browse files
committed
Optimize CI caching
Drop sccache for C/C++, the cache gets overloaded a lot Stop caching OpenCV distribution files
1 parent 61bae62 commit 6c19e62

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

.github/workflows/opencv-rust.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,10 @@ jobs:
4040
OPENCV_LINKAGE: ${{ matrix.linkage }}
4141
SCCACHE_GHA_ENABLED: "true"
4242
RUSTC_WRAPPER: "sccache"
43-
CMAKE_C_COMPILER_LAUNCHER: "sccache"
44-
CMAKE_CXX_COMPILER_LAUNCHER: "sccache"
4543
steps:
4644
- uses: actions/checkout@v4
4745
- uses: dtolnay/rust-toolchain@stable
4846
- uses: mozilla-actions/sccache-action@v0.0.7
49-
- uses: actions/cache@v4
50-
with:
51-
path: ~/dist
52-
key: dist-${{ matrix.opencv-version }}
5347

5448
- uses: actions/cache@v4
5549
with:
@@ -153,17 +147,10 @@ jobs:
153147
OPENCV_VERSION: 4.11.0
154148
SCCACHE_GHA_ENABLED: "true"
155149
RUSTC_WRAPPER: "sccache"
156-
CMAKE_C_COMPILER_LAUNCHER: "sccache"
157-
CMAKE_CXX_COMPILER_LAUNCHER: "sccache"
158150
steps:
159151
- uses: actions/checkout@v4
160152
- uses: mozilla-actions/sccache-action@v0.0.7
161153

162-
- uses: actions/cache@v4
163-
with:
164-
path: ~/dist
165-
key: dist-${{ env.OPENCV_VERSION }}
166-
167154
- uses: actions/cache@v4
168155
with:
169156
path: ~/build

ci/install.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ if [[ "$os_family" == "Linux" ]]; then
2222
if [[ "${VCPKG_VERSION:-}" != "" ]]; then # vcpkg build
2323
"$ci_dir/install-ubuntu-vcpkg.sh"
2424
else
25-
# workaround for mozilla/sccache action problem /bin/sh: 1: sccache: not found when running `sudo make install`
26-
if [[ "${CMAKE_C_COMPILER_LAUNCHER:-}" == "sccache" ]]; then
27-
export CMAKE_C_COMPILER_LAUNCHER="$(which sccache)"
28-
fi
29-
if [[ "${CMAKE_CXX_COMPILER_LAUNCHER:-}" == "sccache" ]]; then
30-
export CMAKE_CXX_COMPILER_LAUNCHER="$(which sccache)"
31-
fi
3225
"$ci_dir/install-ubuntu.sh"
3326
fi
3427
elif [[ "$os_family" == "macOS" ]]; then

0 commit comments

Comments
 (0)