Skip to content

Commit

Permalink
CI Workflow (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale authored Feb 8, 2024
1 parent dcb6606 commit b1b158a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Pull Request Verification

on:
pull_request:
branches: [ "master" ]
types: [ opened, ready_for_review, synchronize ]
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'

- name: Cache gradle
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant permission for gradlew
run: chmod +x gradlew

- name: Setup gradle
uses: gradle/actions/setup-gradle@v3

- name: Build
run: ./gradlew :KDeviceInfo:build
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx4096M"
org.gradle.caching=true
org.gradle.configuration-cache=true

Expand Down

0 comments on commit b1b158a

Please sign in to comment.