Skip to content

Merge pull request #58 from SanctumLabs/dependabot/gradle/jvm-2.0.10 #137

Merge pull request #58 from SanctumLabs/dependabot/gradle/jvm-2.0.10

Merge pull request #58 from SanctumLabs/dependabot/gradle/jvm-2.0.10 #137

Workflow file for this run

name: Build
on: [ push ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Ref: https://github.com/actions/checkout
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Build
run: ./gradlew build
- name: Upload App Build
uses: actions/upload-artifact@v2
with:
name: app-build
path: build/libs/dig-all.jar
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties