mirror of
https://github.com/android-actions/setup-android
synced 2024-11-22 13:29:35 -08:00
Breaks cache version on purpouse
This commit is contained in:
parent
2381fc9bef
commit
22d4a3f682
4 changed files with 9 additions and 6 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,8 @@ import {
|
||||||
COMMANDLINE_TOOLS_VERSION,
|
COMMANDLINE_TOOLS_VERSION,
|
||||||
ANDROID_SDK_ROOT,
|
ANDROID_SDK_ROOT,
|
||||||
ANDROID_REPOSITORIES_CACHE,
|
ANDROID_REPOSITORIES_CACHE,
|
||||||
ANDROID_REPOSITORIES_CFG
|
ANDROID_REPOSITORIES_CFG,
|
||||||
|
VERSION
|
||||||
} from './constants'
|
} from './constants'
|
||||||
|
|
||||||
async function hashFiles(globs: string[]): Promise<string | undefined> {
|
async function hashFiles(globs: string[]): Promise<string | undefined> {
|
||||||
|
@ -133,10 +134,10 @@ export async function postGradleCache(): Promise<void> {
|
||||||
|
|
||||||
export async function preAndroidCache(): Promise<void> {
|
export async function preAndroidCache(): Promise<void> {
|
||||||
const androidHash = await hashFiles(ANDROID_GLOB)
|
const androidHash = await hashFiles(ANDROID_GLOB)
|
||||||
const androidKey = `android-${platform}-${COMMANDLINE_TOOLS_VERSION}-${androidHash}`
|
const androidKey = `android-${VERSION}-${platform}-${COMMANDLINE_TOOLS_VERSION}-${androidHash}`
|
||||||
const androidRestoreKeys = [
|
const androidRestoreKeys = [
|
||||||
`android-${platform}-${COMMANDLINE_TOOLS_VERSION}-`,
|
`android-${VERSION}-${platform}-${COMMANDLINE_TOOLS_VERSION}-`,
|
||||||
`android-${platform}-`
|
`android-${VERSION}-${platform}-`
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!androidHash) {
|
if (!androidHash) {
|
||||||
|
|
|
@ -11,6 +11,8 @@ export const ANNOTATION_MATCHERS = [
|
||||||
|
|
||||||
export const HOME = os.homedir()
|
export const HOME = os.homedir()
|
||||||
|
|
||||||
|
export const VERSION = 'v1'
|
||||||
|
|
||||||
// Gradle constants
|
// Gradle constants
|
||||||
// For caching the gradle cache in ~/.gradle/cache
|
// For caching the gradle cache in ~/.gradle/cache
|
||||||
export const GRADLE_CACHE_GLOB = [
|
export const GRADLE_CACHE_GLOB = [
|
||||||
|
|
Loading…
Reference in a new issue