Skip to content

Commit 13b2f2b

Browse files
authored
Merge pull request #27222 from JuliaLang/vc/appveyot_ccache
Use ccache on AppVeyor to speedup builds
2 parents fd70a0c + e1aa7f0 commit 13b2f2b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ cache:
3535
- llvm-3.9.1-i686-w64-mingw32-juliadeps-r07.7z
3636
- llvm-3.9.1-x86_64-w64-mingw32-juliadeps-r07.7z
3737
- usr/bin/busybox.exe
38+
- C:\ccache
3839

3940
build_script:
4041
# If there's a newer build queued for the same PR, cancel this one

contrib/windows/appveyor_build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ else
205205
# Use BinaryBuilder
206206
echo 'USE_BINARYBUILDER_LLVM = 1' >> Make.user
207207
echo 'override DEP_LIBS += llvm openlibm' >> Make.user
208+
export CCACHE_DIR=/cygdrive/c/ccache
209+
echo 'USECCACHE=1' >> Make.user
208210
make check-whitespace
209211
make VERBOSE=1 -C base version_git.jl.phony
210212
echo 'NO_GIT = 1' >> Make.user
@@ -217,3 +219,4 @@ make -j3 VERBOSE=1 install
217219
make VERBOSE=1 JULIA=../../usr/bin/julia.exe BIN=. "$(make print-CC)" -C test/embedding release
218220
cp usr/bin/busybox.exe julia-*/bin
219221
make build-stats
222+
ccache -s

contrib/windows/install-cygwin.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ mkdir -Force C:\cygdownloads | Out-Null
55
"https://cache.julialang.org/https://cygwin.com/$setup", "C:\cygdownloads\$setup")
66
& "C:\cygdownloads\$setup" -q -n -R C:\cygwin-$env:ARCH `
77
-l C:\cygdownloads -s http://mirrors.kernel.org/sourceware/cygwin -g -I `
8-
-P "make,curl,time,p7zip,mingw64-$env:ARCH-gcc-g++,mingw64-$env:ARCH-gcc-fortran" | Where-Object `
8+
-P "make,curl,time,p7zip,ccache,mingw64-$env:ARCH-gcc-g++,mingw64-$env:ARCH-gcc-fortran" | Where-Object `
99
-FilterScript {$_ -notlike "Installing file *"} | Write-Output

0 commit comments

Comments
 (0)