Skip to content

Commit

Permalink
Trial new runner
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Jan 3, 2024
1 parent 8449a22 commit 5b951ee
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/deploy-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

name: Android Build CI/CD

on:
push:

jobs:
build:
name: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: native_gg
timeout-minutes: 1
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.12.1
- name: install dependencies
run: pnpm install --frozen-lockfile

# Automatically overrides the version code and version name through the github actions
- name: Bump version
uses: chkfung/[email protected]
with:
gradlePath: native_gg/android/app/build.gradle
versionCode: ${{github.run_number}}

- name: Install Dependencies
run: yarn install

- name: Run Unit Test
run: ./gradlew test


# cache Gradle dependencies and wrapper to reduce build time
- name: Cache Gradle Wrapper
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew

0 comments on commit 5b951ee

Please sign in to comment.