|
|
@ -16,8 +16,8 @@ on:
|
|
|
|
- 'externals/**'
|
|
|
|
- 'externals/**'
|
|
|
|
- 'CMakeLists.txt'
|
|
|
|
- 'CMakeLists.txt'
|
|
|
|
- 'vcpkg.json'
|
|
|
|
- 'vcpkg.json'
|
|
|
|
paths-ignore:
|
|
|
|
# paths-ignore:
|
|
|
|
- 'src/android/**'
|
|
|
|
# - 'src/android/**'
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
branches: [ "dev" ]
|
|
|
|
branches: [ "dev" ]
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
@ -28,8 +28,9 @@ on:
|
|
|
|
- 'CMakeLists.txt'
|
|
|
|
- 'CMakeLists.txt'
|
|
|
|
- 'vcpkg.json'
|
|
|
|
- 'vcpkg.json'
|
|
|
|
- '.forgejo/workflows/verify.yml'
|
|
|
|
- '.forgejo/workflows/verify.yml'
|
|
|
|
paths-ignore:
|
|
|
|
- '.ci/**'
|
|
|
|
- 'src/android/**'
|
|
|
|
# paths-ignore:
|
|
|
|
|
|
|
|
# - 'src/android/**'
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
PR_NUMBER: pr${{ github.event.number }}
|
|
|
|
PR_NUMBER: pr${{ github.event.number }}
|
|
|
@ -173,47 +174,44 @@ jobs:
|
|
|
|
# with:
|
|
|
|
# with:
|
|
|
|
# name: ${{ env.INDIVIDUAL_EXE }}
|
|
|
|
# name: ${{ env.INDIVIDUAL_EXE }}
|
|
|
|
# path: ${{ env.INDIVIDUAL_EXE }}
|
|
|
|
# path: ${{ env.INDIVIDUAL_EXE }}
|
|
|
|
# android:
|
|
|
|
android:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# needs: format
|
|
|
|
container: fijxu/build-environments:android
|
|
|
|
# steps:
|
|
|
|
needs: format
|
|
|
|
# - uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
steps:
|
|
|
|
# with:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
# submodules: recursive
|
|
|
|
with:
|
|
|
|
# fetch-depth: 0
|
|
|
|
submodules: recursive
|
|
|
|
# - name: set up JDK 17
|
|
|
|
fetch-depth: 0
|
|
|
|
# uses: https://github.com/actions/setup-java@v3
|
|
|
|
- name: set up JDK 17
|
|
|
|
# with:
|
|
|
|
uses: https://github.com/actions/setup-java@v3
|
|
|
|
# java-version: '17'
|
|
|
|
with:
|
|
|
|
# distribution: 'temurin'
|
|
|
|
java-version: '17'
|
|
|
|
# - name: Set up cache
|
|
|
|
distribution: 'temurin'
|
|
|
|
# uses: https://code.forgejo.org/actions/cache@v3
|
|
|
|
- name: Set up cache
|
|
|
|
# with:
|
|
|
|
uses: https://code.forgejo.org/actions/cache@v3
|
|
|
|
# path: |
|
|
|
|
with:
|
|
|
|
# ~/.gradle/caches
|
|
|
|
path: |
|
|
|
|
# ~/.gradle/wrapper
|
|
|
|
~/.gradle/caches
|
|
|
|
# .ccache
|
|
|
|
~/.gradle/wrapper
|
|
|
|
# key: ${{ runner.os }}-android-${{ github.sha }}
|
|
|
|
~/.ccache
|
|
|
|
# restore-keys: |
|
|
|
|
key: ${{ runner.os }}-android-${{ github.sha }}
|
|
|
|
# ${{ runner.os }}-android-
|
|
|
|
restore-keys: |
|
|
|
|
# - name: Query tag name
|
|
|
|
${{ runner.os }}-android-
|
|
|
|
# uses: https://github.com/olegtarasov/get-tag@v2.1.2
|
|
|
|
- name: Query tag name
|
|
|
|
# id: tagName
|
|
|
|
uses: https://github.com/olegtarasov/get-tag@v2.1.2
|
|
|
|
# - name: Install dependencies
|
|
|
|
id: tagName
|
|
|
|
# run: |
|
|
|
|
- name: Build
|
|
|
|
# sudo apt-get update
|
|
|
|
run: ./.ci/scripts/android/build.sh
|
|
|
|
# sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
|
|
|
|
- name: Copy and sign artifacts
|
|
|
|
# - name: Build
|
|
|
|
env:
|
|
|
|
# run: ./.ci/scripts/android/build.sh
|
|
|
|
ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
|
|
|
|
# - name: Copy and sign artifacts
|
|
|
|
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
|
|
|
# env:
|
|
|
|
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
|
|
|
|
# ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
|
|
|
|
run: ./.ci/scripts/android/upload.sh
|
|
|
|
# ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
|
|
|
- name: Upload
|
|
|
|
# ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
|
|
|
|
uses: https://code.forgejo.org/actions/upload-artifact@v3
|
|
|
|
# run: ./.ci/scripts/android/upload.sh
|
|
|
|
with:
|
|
|
|
# - name: Upload
|
|
|
|
name: android
|
|
|
|
# uses: https://code.forgejo.org/actions/upload-artifact@v3
|
|
|
|
path: artifacts/
|
|
|
|
# with:
|
|
|
|
|
|
|
|
# name: android
|
|
|
|
|
|
|
|
# path: artifacts/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|