mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-24 10:08:52 +00:00
ci: add action to install custom NDK for Ubuntu and Windows Server to the github workflow
This commit is contained in:
parent
b980e7c34a
commit
342070ee78
1 changed files with 17 additions and 5 deletions
22
.github/workflows/build.yaml
vendored
22
.github/workflows/build.yaml
vendored
|
@ -27,6 +27,7 @@ jobs:
|
|||
hmd: [meta]
|
||||
include:
|
||||
- progdir: VrSamples/QuestZDoom/Projects/Android
|
||||
- ndk: 21.4.7075529
|
||||
- build_type: Release
|
||||
build_folder: release
|
||||
- build_type: Debug
|
||||
|
@ -101,11 +102,22 @@ jobs:
|
|||
run: cmake --build build --config ${{ matrix.build_type }} --target revision_check
|
||||
working-directory: ${{ matrix.progdir }}/jni/gzdoom-g3.3mgw_mobile
|
||||
|
||||
# - name: Setup NDK
|
||||
# uses: nttld/setup-ndk@v1
|
||||
# with:
|
||||
# ndk-version: r21e
|
||||
# #local-cache: ${{ strategy.job-index == 0 }}
|
||||
- name: Setup NDK for Ubuntu
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
shell: bash
|
||||
run: echo "y" | ${{ env.SDKMANAGER }} "ndk;${{ matrix.ndk }}"
|
||||
env:
|
||||
SDKMANAGER: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
|
||||
|
||||
- name: Setup NDK for Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: pwsh
|
||||
run: |
|
||||
$sdkRoot = "C:\Android\android-sdk"
|
||||
$sdkManager = "$sdkRoot\cmdline-tools\latest\bin\sdkmanager.bat"
|
||||
Install-AndroidSDKPackages -AndroidSDKManagerPath $sdkManager `
|
||||
-AndroidSDKRootPath $sdkRoot `
|
||||
-AndroidPackages "ndk;${{ matrix.ndk }}"
|
||||
|
||||
- name: Set up JDK 11 for x64
|
||||
uses: actions/setup-java@v3
|
||||
|
|
Loading…
Reference in a new issue