forked from mozilla-mobile/android-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6449: Bug 1622339 - Move android-sdk installation into a toolchain task r=tomprince a=JohanLorenzo Co-authored-by: Johan Lorenzo <[email protected]>
- Loading branch information
Showing
15 changed files
with
149 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
--- | ||
loader: taskgraph.loader.transform:loader | ||
|
||
transforms: | ||
- taskgraph.transforms.fetch:transforms | ||
- taskgraph.transforms.job:transforms | ||
- taskgraph.transforms.task:transforms | ||
|
||
job-defaults: | ||
docker-image: {in-tree: base} | ||
|
||
jobs: | ||
android-sdk-3859397: | ||
description: Android SDK | ||
fetch: | ||
type: static-url | ||
url: https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | ||
artifact-name: sdk-tools-linux.zip | ||
sha256: 444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0 | ||
size: 136964098 | ||
artifact-prefix: mobile/android-sdk | ||
fetch-alias: android-sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
--- | ||
job-defaults: | ||
run: | ||
using: toolchain-script | ||
treeherder: | ||
kind: build | ||
platform: toolchains/opt | ||
tier: 1 | ||
worker-type: b-android | ||
worker: | ||
docker-image: {in-tree: base} | ||
max-run-time: 1800 | ||
|
||
|
||
linux64-android-sdk-linux-repack: | ||
attributes: | ||
artifact_prefix: mobile/android-sdk | ||
description: "Android SDK (Linux) repack toolchain build" | ||
fetches: | ||
fetch: | ||
- android-sdk | ||
run: | ||
script: repack-android-sdk-linux.sh | ||
resources: [] | ||
toolchain-artifact: mobile/android-sdk/android-sdk-linux.tar.xz | ||
toolchain-alias: android-sdk-linux | ||
treeherder: | ||
symbol: TL(android-sdk-linux) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
--- | ||
loader: taskgraph.loader.transform:loader | ||
|
||
kind-dependencies: | ||
- fetch | ||
|
||
transforms: | ||
- taskgraph.transforms.job:transforms | ||
- taskgraph.transforms.cached_tasks:transforms | ||
- taskgraph.transforms.task:transforms | ||
|
||
|
||
jobs-from: | ||
- android.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
export CURL='curl --location --retry 5' | ||
|
||
ANDROID_SDK_VERSION='3859397' | ||
ANDROID_SDK_SHA256='444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0' | ||
SDK_ZIP_LOCATION="$HOME/sdk-tools-linux.zip" | ||
|
||
$CURL --output "$SDK_ZIP_LOCATION" "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_VERSION}.zip" | ||
echo "$ANDROID_SDK_SHA256 $SDK_ZIP_LOCATION" | sha256sum --check | ||
unzip -d "$ANDROID_SDK_ROOT" "$SDK_ZIP_LOCATION" | ||
rm "$SDK_ZIP_LOCATION" | ||
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
export ANDROID_SDK_ROOT=$MOZ_FETCHES_DIR | ||
|
||
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses | ||
|
||
# It's nice to have the build logs include the state of the world upon completion. | ||
"${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --list | ||
|
||
tar cf - -C "$ANDROID_SDK_ROOT" . --transform 's,^\./,android-sdk-linux/,' | xz > "$UPLOAD_DIR/android-sdk-linux.tar.xz" |