Skip to content

Commit

Permalink
Move ndk install to different step
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Oct 6, 2024
1 parent 993416f commit 349df24
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ygopro-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ jobs:
with:
fetch-depth: 1
submodules: recursive
- name: Setup Android NDK
shell: bash
run: ./scripts/setup-ndk.sh
- name: Build
shell: bash
run: ./scripts/build-android.sh
Expand Down
6 changes: 0 additions & 6 deletions scripts/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

set -euxo pipefail

NDK_VERSION=${NDK_VERSION:-"21.4.7075529"}

SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
echo y | $SDKMANAGER "ndk;$NDK_VERSION"
ln -sfn $ANDROID_HOME/ndk/$NDK_VERSION $ANDROID_HOME/ndk-bundle

PROCS=""
if [[ "$TRAVIS_OS_NAME" == "macosx" ]]; then
PROCS=$(sysctl -n hw.ncpu)
Expand Down
9 changes: 9 additions & 0 deletions scripts/setup-ndk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euxo pipefail

NDK_VERSION=${NDK_VERSION:-"21.4.7075529"}

SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
echo y | $SDKMANAGER "ndk;$NDK_VERSION"
ln -sfn $ANDROID_HOME/ndk/$NDK_VERSION $ANDROID_HOME/ndk-bundle

0 comments on commit 349df24

Please sign in to comment.