feat: testing tool #373
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 Library | |
on: | |
pull_request: {} | |
workflow_dispatch: {} | |
workflow_call: | |
secrets: | |
SIGNING_KEY_ID: | |
description: 'Secret Key ID' | |
required: true | |
SIGNING_KEY_FILE: | |
description: 'Secret Key' | |
required: true | |
SIGNING_KEY_PASSWORD: | |
description: 'Secret Password' | |
required: true | |
concurrency: | |
group: build-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Library | |
runs-on: ubuntu-latest | |
env: | |
SIGNING_KEY_FILE_PATH: /home/runner/secretKey.gpg | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'microsoft' | |
cache: gradle | |
- name: Decode Signing Key | |
uses: ./.github/actions/decode_signing_key_action | |
with: | |
signing_key_file: ${{ secrets.SIGNING_KEY_FILE }} | |
signing_file_path: ${{ env.SIGNING_KEY_FILE_PATH }} | |
- name: Assemble | |
run: ./gradlew --stacktrace :library:assemble | |
env: | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
SIGNING_KEY_FILE: ${{ env.SIGNING_KEY_FILE_PATH }} | |
- run: echo "Build status report=${{ job.status }}." |