Skip to content

Commit e4eb880

Browse files
committed
Merge branch 'master' into release/v2
* master: Prepare for release 2.6.2. Add gradle caching. Use correct cli-tools binary for mac. Remove API 28 from workflow.
2 parents a3b0e6d + 61dd774 commit e4eb880

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/workflow.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [macos-latest, ubuntu-latest]
17-
api-level: [16, 23, 28, 29]
17+
api-level: [16, 23, 29]
1818
exclude:
1919
- os: ubuntu-latest
2020
api-level: 23
2121
- os: ubuntu-latest
2222
api-level: 29
23-
- os: macos-latest
24-
api-level: 28
2523
steps:
2624
- name: checkout
2725
uses: actions/checkout@v2
@@ -40,7 +38,13 @@ jobs:
4038
uses: actions/setup-java@v1
4139
with:
4240
java-version: 14
43-
41+
- name: Clean cache
42+
if: matrix.os == 'macos-latest'
43+
run: mv ~/.gradle/caches ~/.gradle/.invalid_caches
44+
- uses: actions/cache@v1
45+
with:
46+
path: ~/.gradle/caches
47+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
4448
- name: run action
4549
uses: ./
4650
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## v2.6.2
4+
5+
* Fixed an issue where the Linux command-line tools binary is used for `macos`.
6+
37
## v2.6.1
48

59
* Fixed SDK license issue on Linux when downloading API 28+ system images - [#42](https://github.com/ReactiveCircus/android-emulator-runner/issues/42).

lib/sdk-installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1818
const core = __importStar(require("@actions/core"));
1919
const exec = __importStar(require("@actions/exec"));
2020
const BUILD_TOOLS_VERSION = '29.0.3';
21-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip';
21+
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-6200805_latest.zip';
2222
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip';
2323
/**
2424
* Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,

src/sdk-installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as core from '@actions/core';
22
import * as exec from '@actions/exec';
33

44
const BUILD_TOOLS_VERSION = '29.0.3';
5-
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip';
5+
const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-6200805_latest.zip';
66
const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip';
77

88
/**

0 commit comments

Comments
 (0)