Skip to content

Commit

Permalink
chore: try to maximize disk space for build
Browse files Browse the repository at this point in the history
  • Loading branch information
meypod committed Feb 25, 2024
1 parent 8d77272 commit 7eb4bda
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:
options: --user root

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 512
temp-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'

- name: install git
run: |
sudo apt-get update;
Expand Down Expand Up @@ -47,11 +58,6 @@ jobs:
- name: Install yarn
run: npm install -g yarn

- name: Load Cache
uses: actions/setup-node@v3
with:
cache: 'yarn'

- name: Install packages
run: yarn install --frozen-lockfile # install project deps with --frozen-lockfile to make sure we will have the same packages version ( very recommended on running yarn install on ci)

Expand Down Expand Up @@ -79,6 +85,11 @@ jobs:
./gradlew --no-daemon :app:bundleRelease -PnoSign
./gradlew --no-daemon :app:assembleRelease -PnoSign -PuseLegacyPackaging=true
- name: cleanup gradle cache and build
run: |
./gradlew clean
rm -rf $HOME/.gradle/caches/
- name: Sign App Apk
if: ${{ github.event_name == 'release'}}
uses: r0adkll/sign-android-release@v1
Expand Down

0 comments on commit 7eb4bda

Please sign in to comment.