This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
build(gha): cancel in-progress pr checks if a new commit is pushed #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr | |
on: | |
pull_request | |
# Cancel in-progress/pending PR checks if a new commit is pushed to the branch. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.0.0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3.12.0 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
# Using 'temurin' speeds up the job, because this distribution is cached by the runner. | |
# See: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Hosted-Tool-Cache | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v2.8.0 | |
- name: Compile a debug build | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false | |
run: ci/debug-build.sh |