mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-02 02:04:48 +12:00
fx
This commit is contained in:
parent
31488a0bd4
commit
1259d6b758
1 changed files with 12 additions and 6 deletions
18
.github/workflows/Android_Build.yml
vendored
18
.github/workflows/Android_Build.yml
vendored
|
@ -21,6 +21,9 @@ jobs:
|
||||||
- name: Fetch submodules
|
- name: Fetch submodules
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Set BUILD_TYPE variable
|
||||||
|
run: echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Vulkan SDK
|
- name: Setup Vulkan SDK
|
||||||
uses: humbletim/setup-vulkan-sdk@v1.2.0
|
uses: humbletim/setup-vulkan-sdk@v1.2.0
|
||||||
with:
|
with:
|
||||||
|
@ -31,18 +34,18 @@ jobs:
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu' # See 'Supported distributions' for available options
|
distribution: 'zulu' # See 'Supported distributions' for available options
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON
|
run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
# Apply patch for GLES compatibility
|
# Apply patch for GLES compatibility
|
||||||
git apply ./.github/gles.patch
|
git apply ./.github/gles.patch
|
||||||
# Build the project with CMake
|
# Build the project with CMake
|
||||||
cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}
|
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }}
|
||||||
# Move the generated library to the appropriate location
|
# Move the generated library to the appropriate location
|
||||||
mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/x86_64/
|
mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/x86_64/
|
||||||
# Build the Android app with Gradle
|
# Build the Android app with Gradle
|
||||||
|
@ -71,6 +74,9 @@ jobs:
|
||||||
- name: Fetch submodules
|
- name: Fetch submodules
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Set BUILD_TYPE variable
|
||||||
|
run: echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Vulkan SDK
|
- name: Setup Vulkan SDK
|
||||||
uses: humbletim/setup-vulkan-sdk@v1.2.0
|
uses: humbletim/setup-vulkan-sdk@v1.2.0
|
||||||
with:
|
with:
|
||||||
|
@ -81,18 +87,18 @@ jobs:
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu' # See 'Supported distributions' for available options
|
distribution: 'zulu' # See 'Supported distributions' for available options
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON -DCMAKE_CXX_FLAGS="-march=armv8-a+crypto"
|
run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON -DCMAKE_CXX_FLAGS="-march=armv8-a+crypto"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
# Apply patch for GLES compatibility
|
# Apply patch for GLES compatibility
|
||||||
git apply ./.github/gles.patch
|
git apply ./.github/gles.patch
|
||||||
# Build the project with CMake
|
# Build the project with CMake
|
||||||
cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }}
|
cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }}
|
||||||
# Move the generated library to the appropriate location
|
# Move the generated library to the appropriate location
|
||||||
mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/arm64-v8a/
|
mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/arm64-v8a/
|
||||||
# Build the Android app with Gradle
|
# Build the Android app with Gradle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue