fix: Upgrade Gradle to fix sample build #102
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 | |
on: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- 'README.md' | |
pull_request: | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macOS-latest ] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Build with Gradle | |
run: ./gradlew publishToMavenLocal | |
env: | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }} | |
- name: Upload library | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.os }}-library | |
path: ~/.m2 | |
- name: Build samples | |
run: | | |
cd samples | |
./gradlew :application:assembleRelease :application-global-obfuscate:assembleRelease :library:assembleRelease :library-may-obfuscate:assembleRelease :library-obfuscate:assembleRelease | |
- name: Upload samples | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.os }}-samples | |
path: samples/*/build/outputs | |
- name: Stop Gradle | |
run: ./gradlew --stop |