#759 Mark more classes/methods/constants removed in Jaybird 6 as depr… #355
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: build-only | |
on: [push,pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6 | |
- name: Build with Gradle | |
run: ./gradlew assemble -PbuildProfile=java11 | |
- 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 | |
rm -fr ~/.gradle/caches/*/plugin-resolution/ | |
find ~/.gradle/caches/ -name "*.lock" -type f -delete | |
- name: build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: build/libs | |
retention-days: 1 |