Skip to content

Commit

Permalink
CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale committed Feb 8, 2024
1 parent dcb6606 commit 48856c7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI Build

on:
push:
branches: [ "master", "ci_workflow" ]
pull_request:
branches: [ "master" ]

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

jobs:
build:
name: Build
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Cache gradle
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Grant permission for gradlew
run: chmod +x gradlew

- name: Setup gradle
uses: gradle/gradle-build-action@v2

- name: Build
run: ./gradlew :KDeviceInfo:build

0 comments on commit 48856c7

Please sign in to comment.