|
|
@ -24,49 +24,6 @@ jobs:
|
|
|
|
distribution: 'temurin'
|
|
|
|
distribution: 'temurin'
|
|
|
|
- name: 'Verify Formatting'
|
|
|
|
- name: 'Verify Formatting'
|
|
|
|
run: bash -ex ./.ci/scripts/format/script.sh
|
|
|
|
run: bash -ex ./.ci/scripts/format/script.sh
|
|
|
|
mainline:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
needs: format
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: set up JDK 17
|
|
|
|
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
java-version: '17'
|
|
|
|
|
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Set up cache
|
|
|
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
path: |
|
|
|
|
|
|
|
|
~/.gradle/caches
|
|
|
|
|
|
|
|
~/.gradle/wrapper
|
|
|
|
|
|
|
|
~/.ccache
|
|
|
|
|
|
|
|
key: ${{ runner.os }}-android-${{ github.sha }}
|
|
|
|
|
|
|
|
restore-keys: |
|
|
|
|
|
|
|
|
${{ runner.os }}-android-
|
|
|
|
|
|
|
|
- name: Query tag name
|
|
|
|
|
|
|
|
uses: olegtarasov/get-tag@v2.1.2
|
|
|
|
|
|
|
|
id: tagName
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
|
|
|
run: ./.ci/scripts/android/build.sh
|
|
|
|
|
|
|
|
- name: Copy and sign artifacts
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }}
|
|
|
|
|
|
|
|
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
|
|
|
|
|
|
|
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
|
|
|
|
|
|
|
|
run: ./.ci/scripts/android/upload.sh
|
|
|
|
|
|
|
|
- name: Upload
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: mainline
|
|
|
|
|
|
|
|
path: artifacts/
|
|
|
|
|
|
|
|
earelease:
|
|
|
|
earelease:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: format
|
|
|
|
needs: format
|
|
|
@ -98,14 +55,14 @@ jobs:
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
|
|
|
|
sudo apt-get install -y ccache apksigner glslang-dev glslang-tools
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: ./.ci/scripts/android/eabuild.sh
|
|
|
|
run: ./.ci/scripts/android/build.sh
|
|
|
|
- name: Copy and sign artifacts
|
|
|
|
- name: Copy and sign artifacts
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
EA_PLAY_ANDROID_KEYSTORE_B64: ${{ secrets.PLAY_ANDROID_KEYSTORE_B64 }}
|
|
|
|
EA_PLAY_ANDROID_KEYSTORE_B64: ${{ secrets.PLAY_ANDROID_KEYSTORE_B64 }}
|
|
|
|
PLAY_ANDROID_KEY_ALIAS: ${{ secrets.PLAY_ANDROID_KEY_ALIAS }}
|
|
|
|
PLAY_ANDROID_KEY_ALIAS: ${{ secrets.PLAY_ANDROID_KEY_ALIAS }}
|
|
|
|
PLAY_ANDROID_KEYSTORE_PASS: ${{ secrets.PLAY_ANDROID_KEYSTORE_PASS }}
|
|
|
|
PLAY_ANDROID_KEYSTORE_PASS: ${{ secrets.PLAY_ANDROID_KEYSTORE_PASS }}
|
|
|
|
EA_SERVICE_ACCOUNT_KEY_B64: ${{ secrets.EA_SERVICE_ACCOUNT_KEY_B64 }}
|
|
|
|
EA_SERVICE_ACCOUNT_KEY_B64: ${{ secrets.EA_SERVICE_ACCOUNT_KEY_B64 }}
|
|
|
|
run: ./.ci/scripts/android/eaupload.sh
|
|
|
|
run: ./.ci/scripts/android/upload.sh
|
|
|
|
- name: Upload
|
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|