From 6596211d4fa4e00a9d75dc301bd9407f63264100 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Wed, 31 Jan 2024 13:00:23 +0500 Subject: [PATCH] Update android.publish.yml Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> --- .github/workflows/android.publish.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.publish.yml b/.github/workflows/android.publish.yml index 16e7b3dc3..37cbbc544 100644 --- a/.github/workflows/android.publish.yml +++ b/.github/workflows/android.publish.yml @@ -36,9 +36,32 @@ jobs: ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.11 + with: + key: ${{ runner.os }}-ccache-${{ hashFiles(format('apps/mobile/native/package.json')) }} + restore-keys: | + ${{ runner.os }}-ccache- + + - name: Setup ccache + run: | + ln -s $(which ccache) /usr/local/bin/gcc + ln -s $(which ccache) /usr/local/bin/g++ + ln -s $(which ccache) /usr/local/bin/cc + ln -s $(which ccache) /usr/local/bin/c++ + ln -s $(which ccache) /usr/local/bin/clang + ln -s $(which ccache) /usr/local/bin/clang++ + export NDK_CCACHE=/usr/local/bin/ccache + + - name: CCache Stats + run: ccache -s -v + - name: Build unsigned app bundle run: yarn release:android:bundle + - name: CCache Stats after build + run: cache -s -v + # - name: Sign app bundle for Playstore release # id: sign_app # uses: r0adkll/sign-android-release@master @@ -62,8 +85,8 @@ jobs: # status: completed # whatsNewDirectory: apps/mobile/native/android/releasenotes/ - - name: Build apks for Github release - run: yarn release:android + # - name: Build apks for Github release + # run: yarn release:android # - name: Sign apk files # id: sign_apk