Skip to content

Instantly share code, notes, and snippets.

@mattrob33
Last active February 19, 2024 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattrob33/f84cdc3777afef6611614a71810671e5 to your computer and use it in GitHub Desktop.
Save mattrob33/f84cdc3777afef6611614a71810671e5 to your computer and use it in GitHub Desktop.
Example buildscript
on:
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
cache-read-only: false
- name: Build
run: ./gradlew assembleDebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment