Update Gradle Cache #1
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
# Updates the Gradle Cache when Necessary (from https://github.com/GregTechCEu/GregTech/blob/master/.github/workflows/update_gradle_cache.yml) | |
name: Update Gradle Cache | |
on: | |
push: | |
branches: | |
- master | |
paths: ['gradle/**', '**.gradle', 'gradle.properties', 'gradlew**', 'src/main/resources/*_at.cfg'] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update-cache: | |
name: Update Grade Cache | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Build | |
uses: ./.github/actions/build_setup | |
with: | |
update-cache: true | |
- name: Build Project with Gradle | |
run: ./gradlew assemble --warning-mode all --build-cache |