2023-10-26 16:20:21 +03:00
|
|
|
name: Build Debug
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, reopened, synchronize]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2023-10-26 16:33:53 +03:00
|
|
|
BuildDebug:
|
2023-10-26 16:20:21 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
|
|
|
|
- name: Checkout submodules
|
|
|
|
run: git submodule update --init --recursive --remote --force
|
|
|
|
|
|
|
|
- name: Setup Java
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/setup-java@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
with:
|
|
|
|
distribution: 'zulu'
|
|
|
|
java-version: 17
|
|
|
|
|
|
|
|
- name: Setup Go
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/setup-go@v5
|
2023-10-26 16:20:21 +03:00
|
|
|
with:
|
|
|
|
go-version: "1.20"
|
|
|
|
|
2024-01-18 11:52:50 +03:00
|
|
|
- uses: actions/cache@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
2023-10-26 19:56:33 +03:00
|
|
|
# - name: Signing properties
|
|
|
|
# env:
|
|
|
|
# SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
|
|
|
# SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
|
|
# SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
|
|
# run: |
|
|
|
|
# touch signing.properties
|
|
|
|
# echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties
|
|
|
|
# echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties
|
|
|
|
# echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties
|
2023-10-26 16:20:21 +03:00
|
|
|
|
2023-10-26 19:56:33 +03:00
|
|
|
# echo "cat signing.properties"
|
|
|
|
# cat signing.properties
|
2023-10-26 16:20:21 +03:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
if: success()
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
|
|
|
arguments: --no-daemon app:assembleMeta-AlphaRelease
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload Aritfact (universal)
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2023-10-26 19:56:33 +03:00
|
|
|
name: CMFA Debug Unsigned APK (universal)
|
2023-10-26 16:20:21 +03:00
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/meta-alpha/release/*-universal-*.apk
|
|
|
|
|
|
|
|
- name: Upload Aritfact (arm64-v8a)
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2023-10-26 19:56:33 +03:00
|
|
|
name: CMFA Debug Unsigned APK (arm64-v8a)
|
2023-10-26 16:20:21 +03:00
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/meta-alpha/release/*-arm64-v8a-*.apk
|
|
|
|
|
|
|
|
- name: Upload Aritfact (armeabi-v7a)
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2023-10-26 19:56:33 +03:00
|
|
|
name: CMFA Debug Unsigned APK (armeabi-v7a)
|
2023-10-26 16:20:21 +03:00
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/meta-alpha/release/*-armeabi-v7a-*.apk
|
|
|
|
|
|
|
|
- name: Upload Aritfact (x86_64)
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2023-10-26 19:56:33 +03:00
|
|
|
name: CMFA Debug Unsigned APK (x86_64)
|
2023-10-26 16:20:21 +03:00
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/meta-alpha/release/*-x86_64-*.apk
|
|
|
|
|
|
|
|
- name: Upload Aritfact (x86)
|
2024-01-18 11:52:50 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-10-26 16:20:21 +03:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
2023-10-26 19:56:33 +03:00
|
|
|
name: CMFA Debug Unsigned APK (x86)
|
2023-10-26 16:20:21 +03:00
|
|
|
path: |
|
|
|
|
app/build/outputs/apk/meta-alpha/release/*-x86-*.apk
|