Skip to content

Commit

Permalink
default to android sdk 23, not 28
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Jan 20, 2024
1 parent d6b1dab commit feeb562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ This repository contains two actions, one for just building the mods, and anothe

# Which commit/branch to use for bindings. Defaults to latest commit in main branch. Not required.
bindings-ref: ''

# The android min SDK version to target. Defaults to 23. Not required.
android-min-sdk: ''
```
# Examples
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ inputs:
description: Which commit/branch to use for bindings. Defaults to latest commit in main branch
required: false
default: ""
android-min-sdk:
description: The android min SDK version to target. Defaults to 23
required: false
default: 23

outputs:
build-output:
Expand Down Expand Up @@ -177,9 +181,9 @@ runs:
elif [ ${{ steps.platform.outputs.id }} = "mac" ]; then
CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
elif [ ${{ steps.platform.outputs.target }} = "Android32" ]; then
CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_TOOLCHAIN_FILE=$NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-28 -DGEODE_DONT_BUILD_TEST_MODS=1 -G Ninja"
CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_TOOLCHAIN_FILE=$NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-${{ inputs.android-min-sdk }} -DGEODE_DONT_BUILD_TEST_MODS=1 -G Ninja"
elif [ ${{ steps.platform.outputs.target }} = "Android64" ]; then
CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_TOOLCHAIN_FILE=$NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-28 -DGEODE_DONT_BUILD_TEST_MODS=1 -G Ninja"
CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=${{ inputs.build-config }} -DCMAKE_TOOLCHAIN_FILE=$NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-${{ inputs.android-min-sdk }} -DGEODE_DONT_BUILD_TEST_MODS=1 -G Ninja"
fi
cmake -B build $CMAKE_EXTRA_ARGS -DGEODE_DONT_INSTALL_MODS=On -DGEODE_TARGET_PLATFORM=${{ steps.platform.outputs.target }} ${{ inputs.configure-args }}
cmake --build build --config ${{ inputs.build-config }} ${{ inputs.build-args }}
Expand Down

0 comments on commit feeb562

Please sign in to comment.