Skip to content

Commit

Permalink
Add Android build check to workflow (#207)
Browse files Browse the repository at this point in the history
* Add android build check to workflow
* Update workflow actions to silence warnings
  • Loading branch information
Exzap authored Jan 24, 2024
1 parent 8f89a53 commit 12b46e5
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: "Checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: "Checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
Expand All @@ -60,7 +60,7 @@ jobs:
runs-on: windows-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
Expand Down Expand Up @@ -106,3 +106,48 @@ jobs:
shell: msys2 {0}
run: |
cmake --build build
build-android:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git wget unzip ant
- name: Set up Android Tools and Build Tree
env:
ANDROID_HOME: ${{ github.workspace }}/android-tools
run: |
mkdir $ANDROID_HOME
wget https://dl.google.com/android/repository/tools_r25.2.5-linux.zip -P $ANDROID_HOME
unzip $ANDROID_HOME/tools_r25.2.5-linux.zip -d $ANDROID_HOME
echo y | $ANDROID_HOME/tools/bin/sdkmanager "platform-tools" "build-tools;30.0.3" "ndk-bundle" "platforms;android-19" "platforms;android-30"
mkdir ${{ github.workspace }}/el
git clone https://github.com/pjbroad/el-build-methods.git ${{ github.workspace }}/el/el-build-methods
git clone https://github.com/raduprv/Eternal-Lands.git ${{ github.workspace }}/el/el-build-methods/android/jni/src
- name: Setup libs
env:
ANDROID_HOME: ${{ github.workspace }}/android-tools
run: |
cd ${{ github.workspace }}/el/el-build-methods/android/
./setup-libs.bash
- name: Build Android Package
env:
ANDROID_HOME: ${{ github.workspace }}/android-tools
APP_ALLOW_MISSING_DEPS: true
run: |
cd ${{ github.workspace }}/el/el-build-methods/android/
$ANDROID_HOME/ndk-bundle/ndk-build -j $(nproc)

0 comments on commit 12b46e5

Please sign in to comment.