Use action for Android NDK
This commit is contained in:
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@@ -27,15 +27,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|
||||||
- name: Set environment variables (Linux/macOS)
|
- name: Install system dependencies (Linux)
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: |
|
run: |
|
||||||
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
|
||||||
|
|
||||||
- name: Set environment variables (Windows)
|
|
||||||
if: ${{ startsWith(matrix.os, 'windows-') }}
|
|
||||||
run: |
|
|
||||||
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Install Haxe dependencies
|
- name: Install Haxe dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -44,10 +39,15 @@ jobs:
|
|||||||
haxelib install hxp --quiet
|
haxelib install hxp --quiet
|
||||||
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet
|
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet
|
||||||
|
|
||||||
- name: Install system dependencies (Linux)
|
- name: Enable HXCPP compile cache (Linux/macOS)
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
|
echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Enable HXCPP compile cache (Windows)
|
||||||
|
if: ${{ startsWith(matrix.os, 'windows-') }}
|
||||||
|
run: |
|
||||||
|
echo "HXCPP_COMPILE_CACHE=C:\.hxcpp" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install "lime" command alias (Linux/macOS)
|
- name: Install "lime" command alias (Linux/macOS)
|
||||||
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
if: ${{ !startsWith(matrix.os, 'windows-') }}
|
||||||
@@ -64,12 +64,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Android support (Linux)
|
- name: Configure Android support (Linux)
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
|
uses: nttld/setup-ndk@v1
|
||||||
|
id: configure-android
|
||||||
|
with:
|
||||||
|
ndk-version: r15c
|
||||||
run: |
|
run: |
|
||||||
wget -O android-ndk.zip --quiet https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
|
|
||||||
unzip -qq android-ndk.zip
|
|
||||||
rm android-ndk.zip
|
|
||||||
lime config ANDROID_SDK $ANDROID_HOME
|
lime config ANDROID_SDK $ANDROID_HOME
|
||||||
lime config ANDROID_NDK_ROOT android-ndk-r15c
|
lime config ANDROID_NDK_ROOT ${{ steps.configure-android.outputs.ndk-path }}
|
||||||
lime config JAVA_HOME $JAVA_HOME
|
lime config JAVA_HOME $JAVA_HOME
|
||||||
lime config ANDROID_SETUP true
|
lime config ANDROID_SETUP true
|
||||||
lime config
|
lime config
|
||||||
|
|||||||
Reference in New Issue
Block a user