Skip to content

Commit 1ad8351

Browse files
hramosfacebook-github-bot
authored andcommitted
Clear apt cache
Summary: This will unblock test_android on CI. Closes facebook#19275 Differential Revision: D8020049 Pulled By: hramos fbshipit-source-id: 9d738a636f63138aae918759e879f9e397c11aca
1 parent 499d654 commit 1ad8351

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ aliases:
4444

4545
- &restore-cache-apt
4646
keys:
47-
- v1-apt-{{ arch }}-{{ .Branch }}-{{ checksum "scripts/circleci/apt-get-android-deps.sh" }}
48-
# Fallback in case checksum fails
49-
- v1-apt-{{ arch }}-{{ .Branch }}-
47+
- v1-apt-{{ .Branch }}-{{ checksum "scripts/circleci/apt-get-android-deps.sh" }}
5048
# Fallback in case this is a first-time run on a fork
51-
- v1-apt-{{ arch }}-master-
49+
# You always want to match checksum, if it fails,
50+
# proceed with a fresh install.
51+
- v1-apt-master-{{ checksum "scripts/circleci/apt-get-android-deps.sh" }}
5252
- &save-cache-apt
5353
paths:
5454
- ~/vendor/apt
55-
key: v1-apt-{{ arch }}-{{ .Branch }}-{{ checksum "scripts/circleci/apt-get-android-deps.sh" }}
55+
key: v1-apt-{{ .Branch }}-{{ checksum "scripts/circleci/apt-get-android-deps.sh" }}
5656

5757
- &restore-cache-ndk
5858
keys:

scripts/circleci/apt-get-android-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ fi
2222

2323
# Install all packages in the cache
2424
echo "Installing build dependencies..."
25-
sudo dpkg -i ~/vendor/apt/archives/*.deb
25+
sudo dpkg -i ~/vendor/apt/archives/*.deb

0 commit comments

Comments
 (0)