Commit f86ec47f86b1ee3bae2a2f81e00796db903c208c

Anonymous Maarten 2022-07-25T15:08:33

ci: don't use ANDROID_NDK_HOME environment variable in Android workflow

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 6c417da..5c83312 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -63,13 +63,13 @@ jobs:
       - name: Verify sdl2-config
         if: ${{ matrix.platform.name == 'CMake' }}
         run: |
-          export CC="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=${{ matrix.platform.arch }}-none-linux-androideabi${{ matrix.platform.android_platform }}"
+          export CC="${{ steps.setup_ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=${{ matrix.platform.arch }}-none-linux-androideabi${{ matrix.platform.android_platform }}"
           export PATH=${{ env.SDL2_DIR }}/bin:$PATH
           cmake/test/test_sdlconfig.sh
       - name: Verify sdl2.pc
         if: ${{ matrix.platform.name == 'CMake' }}
         run: |
-          export CC="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=${{ matrix.platform.arch }}-none-linux-androideabi${{ matrix.platform.android_platform }}"
+          export CC="${{ steps.setup_ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=${{ matrix.platform.arch }}-none-linux-androideabi${{ matrix.platform.android_platform }}"
           export PKG_CONFIG_PATH=${{ env.SDL2_DIR }}/lib/pkgconfig
           cmake/test/test_pkgconfig.sh
       - name: Verify Android.mk