Skip to content

Commit

Permalink
Remove redundant SKIP_ICU_BUILD environment variable
Browse files Browse the repository at this point in the history
Use ICU_ROOT_DIR to convey that ICU does not need to be built locally
from the submodule.
  • Loading branch information
hoisie committed Nov 29, 2021
1 parent 8cfec14 commit 170b5e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -53,7 +53,7 @@ jobs:
make install
- name: Build
run: ICU_ROOT_DIR=$HOME/icu-bin SKIP_ICU_BUILD=true SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew clean assemble testClasses --parallel --stacktrace --no-watch-fs
run: ICU_ROOT_DIR=$HOME/icu-bin SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew clean assemble testClasses --parallel --stacktrace --no-watch-fs

unit-tests:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Run unit tests
run: |
ICU_ROOT_DIR=$HOME/icu-bin SKIP_ICU_BUILD=true SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew test --info --stacktrace --continue \
ICU_ROOT_DIR=$HOME/icu-bin SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew test --info --stacktrace --continue \
--parallel \
--no-watch-fs \
-Drobolectric.enabledSdks=${{ matrix.api-versions }} \
Expand Down
4 changes: 2 additions & 2 deletions nativeruntime/build.gradle
Expand Up @@ -35,7 +35,7 @@ task cmakeNativeRuntime {
}

task configureICU {
onlyIf { !System.getenv('SKIP_ICU_BUILD') }
onlyIf { !System.getenv('ICU_ROOT_DIR') }
doLast {
def os = osName()
if (!file("$projectDir/external/icu/icu4c/source").exists()) {
Expand All @@ -57,7 +57,7 @@ task configureICU {
}

task buildICU {
onlyIf { !System.getenv('SKIP_ICU_BUILD') }
onlyIf { !System.getenv('ICU_ROOT_DIR') }
dependsOn configureICU
doLast {
exec {
Expand Down

0 comments on commit 170b5e5

Please sign in to comment.