mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 15:52:45 +01:00
CI: Enable android artifacts
This commit is contained in:
parent
177bb48d6c
commit
068052078f
3 changed files with 48 additions and 49 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
||||||
|
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
export NDK_CCACHE="$(which ccache)"
|
export NDK_CCACHE="$(which ccache)"
|
||||||
|
@ -9,7 +10,7 @@ ccache -s
|
||||||
BUILD_FLAVOR="mainline"
|
BUILD_FLAVOR="mainline"
|
||||||
|
|
||||||
BUILD_TYPE="release"
|
BUILD_TYPE="release"
|
||||||
if [ "${GITHUB_REPOSITORY}" == "suyu-emu/suyu" ]; then
|
if [ "${GITHUB_REPOSITORY}" == "suyu/suyu" ]; then
|
||||||
BUILD_TYPE="relWithDebInfo"
|
BUILD_TYPE="relWithDebInfo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ BUILD_FLAVOR="mainline"
|
||||||
|
|
||||||
BUILD_TYPE_LOWER="release"
|
BUILD_TYPE_LOWER="release"
|
||||||
BUILD_TYPE_UPPER="Release"
|
BUILD_TYPE_UPPER="Release"
|
||||||
if [ "${GITHUB_REPOSITORY}" == "suyu-emu/suyu" ]; then
|
if [ "${GITHUB_REPOSITORY}" == "suyu/suyu" ]; then
|
||||||
BUILD_TYPE_LOWER="relWithDebInfo"
|
BUILD_TYPE_LOWER="relWithDebInfo"
|
||||||
BUILD_TYPE_UPPER="RelWithDebInfo"
|
BUILD_TYPE_UPPER="RelWithDebInfo"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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/
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue