Skip to content

Commit

Permalink
Try working around a build tools error on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Sep 24, 2024
1 parent 3b0942e commit 082887d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ jobs:
timeout_minutes: 10
max_attempts: 3
command: scripts/gha/install_test_workflow_prereqs.sh -p Android
- name: Fix dexer command line on Windows
if: startsWith(matrix.os, 'windows')
shell: bash
run: sed -i~ 's/-Djava\.ext\.dirs="\%frameworkdir\%"//' "${ANDROID_HOME}/build-tools/*/d8.bat"
- name: Fetch prebuilt packaged SDK from previous run
uses: dawidd6/action-download-artifact@v2
if: ${{ github.event.inputs.test_packaged_sdk != '' }}
Expand Down
7 changes: 1 addition & 6 deletions android_build_files/extract_and_dex.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,8 @@ def defineExtractionTasks(String resourceName, String buildType) {
String dex_path = "${sdk_dir}/build-tools/${buildToolsVersion}/d8"
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
dex_path = "${dex_path}.bat"

commandLine "cmd", "/c", "echo", "${dex_path}",
"$buildDir/classes.jar",
"--output",
"$dexedJar"
}

commandLine "${dex_path}",
"$buildDir/classes.jar",
"--output",
Expand Down

0 comments on commit 082887d

Please sign in to comment.