|
@@ -1,27 +1,34 @@
|
|
name: "QA"
|
|
name: "QA"
|
|
|
|
|
|
on:
|
|
on:
|
|
- pull_request_target:
|
|
|
|
|
|
+ pull_request:
|
|
branches: [ master, stable-* ]
|
|
branches: [ master, stable-* ]
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
qa:
|
|
qa:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
steps:
|
|
|
|
+ - name: Check if secrets are available
|
|
|
|
+ run: echo "::set-output name=ok::${{ secrets.KS_PASS != '' }}"
|
|
|
|
+ id: check-secrets
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/checkout@v3
|
|
|
|
+ if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
|
with:
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
- name: set up JDK 11
|
|
- name: set up JDK 11
|
|
uses: actions/setup-java@v3
|
|
uses: actions/setup-java@v3
|
|
|
|
+ if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
|
with:
|
|
with:
|
|
distribution: "temurin"
|
|
distribution: "temurin"
|
|
java-version: 11
|
|
java-version: 11
|
|
- name: Install NDK and cmake
|
|
- name: Install NDK and cmake
|
|
|
|
+ if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
|
run: |
|
|
run: |
|
|
source ndk.env
|
|
source ndk.env
|
|
/usr/local/lib/android/sdk/tools/bin/sdkmanager "ndk;${NDK_VERSION}" "cmake;${CMAKE_VERSION}"
|
|
/usr/local/lib/android/sdk/tools/bin/sdkmanager "ndk;${NDK_VERSION}" "cmake;${CMAKE_VERSION}"
|
|
- name: Build QA
|
|
- name: Build QA
|
|
|
|
+ if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
|
env:
|
|
env:
|
|
KS_PASS: ${{ secrets.KS_PASS }}
|
|
KS_PASS: ${{ secrets.KS_PASS }}
|
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|
|
KEY_PASS: ${{ secrets.KEY_PASS }}
|